summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2016-04-26 13:04:14 +0200
committerAlan Pearce2016-04-26 13:04:14 +0200
commitc7956638db01c5e1fcd2530637ac6ab28dada54d (patch)
tree7981a12ecde2ad5f6a4af1f91b4b24ef03b044d3 /tag-emacs
parentdd9125cec6325d814cd94c0362873dc173e4d6ac (diff)
downloadnixfiles-c7956638db01c5e1fcd2530637ac6ab28dada54d.tar.lz
nixfiles-c7956638db01c5e1fcd2530637ac6ab28dada54d.tar.zst
nixfiles-c7956638db01c5e1fcd2530637ac6ab28dada54d.zip
Emacs: Use :config more
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.org22
1 files changed, 10 insertions, 12 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index a8fa691a..739180b6 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -140,11 +140,10 @@ in modes for webdev because [[web-mode]] includes that functionality.
 
 Highlighting quasi-quoted expressions in lisps is quite useful.
 #+BEGIN_SRC emacs-lisp
-(use-package highlight-stages
-  :defer t
-  :diminish highlight-stages-mode
-  :init (progn
-          (add-hook 'lisp-mode-common-hook #'highlight-stages-mode)))
+  (use-package highlight-stages
+    :diminish highlight-stages-mode
+    :config (progn
+              (add-hook 'lisp-mode-common-hook #'highlight-stages-mode)))
 #+END_SRC
 
 ** Fonts
@@ -314,9 +313,9 @@ based upon some folder conventions I use.
            ("s-x s-f" . projectile-find-file)
            ("C-x g" . projectile-vc)
            ("s-G"   . projectile-vc))
-    :init (projectile-global-mode)
     :diminish projectile-mode
     :config (progn
+              (projectile-global-mode)
               (add-to-list 'projectile-globally-ignored-directories ".stversions")
               (defun ap/subfolder-projects (dir)
                 (--map (file-relative-name it dir)
@@ -2218,12 +2217,11 @@ movement commands are much more interesting.
 #+BEGIN_SRC emacs-lisp
   (use-package paredit
     :diminish "()"
-    :commands (paredit-mode)
-    :init (progn
-            (add-hook 'lisp-mode-common-hook #'enable-paredit-mode)
-            (put #'paredit-forward-delete 'delete-selection 'supersede)
-            (put #'paredit-backward-delete 'delete-selection 'supersede)
-            (add-hook 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode)))
+    :config (progn
+              (add-hook 'lisp-mode-common-hook #'enable-paredit-mode)
+              (put #'paredit-forward-delete 'delete-selection 'supersede)
+              (put #'paredit-backward-delete 'delete-selection 'supersede)
+              (add-hook 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode)))
 #+END_SRC
 
 ** smartparens