all repos — nixfiles @ 99e2d7be633ce4b6ef3517b9aded303b3b71c07f

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

Emacs: Optimise startup
Alan Pearce alan.pearce@spotcap.com
Sun, 21 Jun 2015 13:07:53 +0200
commit

99e2d7be633ce4b6ef3517b9aded303b3b71c07f

parent

e02cc4654d04b7efd5232c23c26a96aff2997b0c

1 files changed, 8 insertions(+), 2 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -48,6 +48,7 @@ (package-install 'req-package)) (require 'req-package)
 (setq use-package-verbose t)
 (req-package pallet
+  :defer 5
   :config (pallet-mode 1))
 
 (req-package paradox
@@ -290,6 +291,7 @@ (setq insert-directory-program (executable-find "gls")))             (put 'dired-find-alternate-file 'disabled nil)))
 
 (req-package dired-k
+  :require dired
   :init (progn
           (add-hook 'dired-initial-position-hook #'dired-k))
   :config (progn
@@ -945,6 +947,7 @@ :config (progn             (setq go-projectile-switch-gopath 'maybe)))
 
 (req-package ggtags
+  :commands turn-on-ggtags-mode
   :config (progn
             (bind-key "q" #'ggtags-navigation-mode-abort ggtags-navigation-mode-map))
   :init (progn
@@ -974,6 +977,7 @@ ;;;; Projects
 
 (req-package dash
+  :demand t
   :init (setq dash-enable-fontlock t)
   :config (progn
             (dash--enable-fontlock 'dash-enable-font-lock t)))
@@ -1030,9 +1034,9 @@ (req-package editorconfig)
 
 (req-package perspective
-  :demand t
   :bind (("s-p" . persp-switch))
-  :config (persp-mode))
+  :init (progn
+          (add-hook 'projectile-switch-project-hook #'persp-mode)))
 
 (req-package persp-projectile
   :require (projectile perspective))
@@ -1223,6 +1227,7 @@ (bind-key "C-=" #'helm-swoop isearch-mode-map)           (bind-key "C-=" #'helm-multi-swoop-all-from-helm-swoop)))
 
 (req-package multiple-cursors
+  :defer 1
   :config (progn
             (bind-key "C-." #'mc/mark-next-like-this)
             (bind-key "C-," #'mc/mark-previous-like-this)
@@ -1452,6 +1457,7 @@ (add-to-list 'imenu-generic-expression '("Calls" "^# ?\\(.+\\)$" 1) t))             (add-hook restclient-mode-hook #'imenu-restclient-sections)))
 
 (req-package tern
+  :commands ap/enable-tern
   :config (progn
             (setq tern-command (list (executable-find "tern")))
             (defun ap/enable-tern ()