]> git.donarmstrong.com Git - lib.git/blobdiff - emacs_el/configuration/don-configuration.org
use-package with polymode
[lib.git] / emacs_el / configuration / don-configuration.org
index a31dcdc17b156eab020e607dab4a5e341073ee73..75df81acc954fa4f746dd5cefb3201e38c2d8d39 100644 (file)
@@ -478,18 +478,22 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori
 
 ** Polymode
 #+BEGIN_SRC emacs-lisp
-  (setq load-path
-        (append '("~/lib/emacs_el/polymode/modes")
-                load-path))
-  (require 'polymode)
-  (require 'poly-R)
-  (require 'poly-noweb)
-  (require 'poly-markdown)
-  (add-to-list 'auto-mode-alist '("\\.Snw" . poly-noweb+r-mode))
-  (add-to-list 'auto-mode-alist '("\\.Rnw" . poly-noweb+r-mode))
-  (add-to-list 'auto-mode-alist '("\\.Rmd" . poly-markdown+r-mode))
+  (use-package polymode
+    :config
+    (use-package poly-R)
+    (use-package poly-noweb)
+    (use-package poly-markdown)
+    :mode ("\\.Snw" . poly-noweb+r-mode)
+    :mode ("\\.Rnw" . poly-noweb+r-mode)
+    :mode ("\\.Rmd" . poly-markdown+r-mode)
+    )
 #+END_SRC
 
+** Outlining
+*** Outline magic
+#+BEGIN_SRC emacs-lisp
+  (use-package outline-magic)
+#+END_SRC
 * Keybindings
 ** Override other things
 #+BEGIN_SRC emacs-lisp
@@ -767,7 +771,7 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori
   (put 'downcase-region 'disabled nil)
   (put 'narrow-to-region 'disabled nil)
 
-
+  (setq ispell-program-name "ispell")
   (autoload 'flyspell-mode "flyspell" "On-the-fly spelling checker." t)
   (add-hook 'message-mode-hook 'turn-on-flyspell)
   (add-hook 'text-mode-hook 'turn-on-flyspell)