 
 ;; stumpwm-mode
 ;; special lisp mode for evaluating code into running stumpwm
-(use-package stumpwm-mode)
+(use-package stumpwm-mode
+  :mode (("stumpwmrc" . stumpwm-mode)))
 
 ;; slime
 ;; Superior Lisp Interaction Mode for Emacs
 (use-package slime
+  :mode (("\\.lisp\\'" . slime)
+	 ("stumpwmrc" . slime))
   :config
   (load (expand-file-name "~/quicklisp/slime-helper.el"))
   (setq inferior-lisp-program "/usr/bin/sbcl"))

;; ox-pandoc
;; org exporter for pandoc
(use-package ox-pandoc
  :config
  (setq org-pandoc-options-for-latex-pdf '((latex-engine . "lualatex")))
  (setq org-pandoc-options-for-beamer-pdf '((latex-engine . "lualatex"))))

;; org-trello
;; Minor mode to synchronize org-mode buffer and trello board
(use-package org-trello)

;; web-beautify
;; Format HTML, CSS and JavaScript/JSON

  :config
  (global-nlinum-mode t))

;; org
;; Outline-based notes management and organizer
(use-package org
  :mode "\\.org$"
  :config
  ;; add scrartcl LaTeX class to org
  (with-eval-after-load 'ox-latex
    (add-to-list 'org-latex-classes
