all repos — archive/dotfiles @ 512cd43b1ae36c6f39569b81958d9e94053c40f6

Superseded by nixfiles

Emacs: More defer
Alan Pearce alan.pearce@spotcap.com
Mon, 16 Nov 2015 09:57:27 +0100
commit

512cd43b1ae36c6f39569b81958d9e94053c40f6

parent

e2fd5162a7e0018c911865f85b2d5dbf73020ed3

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

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -503,6 +503,7 @@ An awesome way to open files on OS X. 
 #+BEGIN_SRC emacs-lisp
   (req-package spotlight
+    :defer 10
     :if (eq system-type 'darwin)
     :config (setq spotlight-tmp-file "/tmp/.emacs-spotlight-tmp-file"))
 #+END_SRC
@@ -935,6 +936,7 @@ #+END_SRC 
 #+BEGIN_SRC emacs-lisp
   (req-package dired+
+    :defer 5
     :require dired
     :config (progn
               (diredp-toggle-find-file-reuse-dir 1)
@@ -1561,7 +1563,7 @@ ***** TODO Setup org-mobile #+BEGIN_SRC emacs-lisp
   (req-package org-mobile
     :require org
-    :defer t
+    :defer 30
     :config (progn
               (setq org-mobile-directory "~/Mobile/Org"
                     org-mobile-inbox-for-pull "~/Mobile/Org/from-mobile.org")
@@ -1900,6 +1902,7 @@ #+BEGIN_SRC emacs-lisp
   (req-package tern
     :commands ap/enable-tern
+    :defer 5
     :config (progn
               (setq tern-command (list (executable-find "tern")))
               (defun ap/enable-tern ()
@@ -1907,6 +1910,7 @@ (tern-mode 1))               (add-hook 'js2-mode-hook #'ap/enable-tern)))
 
   (req-package company-tern
+    :defer 5
     :require (tern company))
 #+END_SRC
 
@@ -2130,12 +2134,13 @@ =Align= is a useful command to line things up, once given some rules. The most important one for me is JSON property alignment.
 
 #+BEGIN_SRC emacs-lisp
-(req-package align
-  :config (progn
-            (add-to-list 'align-rules-list
-                         '(colon-key-value
-                           (regexp . ":\\(\\s-*\\)")
-                           (modes  . '(js2-mode))))))
+  (req-package align
+    :defer 10
+    :config (progn
+              (add-to-list 'align-rules-list
+                           '(colon-key-value
+                             (regexp . ":\\(\\s-*\\)")
+                             (modes  . '(js2-mode))))))
 #+END_SRC
 
 ** Clipboard