all repos — nixfiles @ c7956638db01c5e1fcd2530637ac6ab28dada54d

System and user configuration, managed by nix and home-manager

Emacs: Use :config more
Alan Pearce alan@alanpearce.co.uk
Tue, 26 Apr 2016 13:04:14 +0200
commit

c7956638db01c5e1fcd2530637ac6ab28dada54d

parent

dd9125cec6325d814cd94c0362873dc173e4d6ac

1 files changed, 10 insertions(+), 12 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -140,11 +140,10 @@ #+END_SRC 
 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 @@ :bind (("C-c C-f" . projectile-find-file)            ("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 @@ #+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