summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d
diff options
context:
space:
mode:
authorAlan Pearce2015-12-10 11:18:27 +0100
committerAlan Pearce2015-12-10 11:18:27 +0100
commit2a8867b7a4184e443ef24ed6c02a46248500cf36 (patch)
tree29476fbe39a87e3d3ab7ddcf981a1fe3d5cffd1b /tag-emacs/emacs.d
parent00b0182d5c08e67c7a9e154c4be77adc2e6a9eb3 (diff)
downloaddotfiles-2a8867b7a4184e443ef24ed6c02a46248500cf36.tar.lz
dotfiles-2a8867b7a4184e443ef24ed6c02a46248500cf36.tar.zst
dotfiles-2a8867b7a4184e443ef24ed6c02a46248500cf36.zip
Emacs: More startup optimisation
Diffstat (limited to 'tag-emacs/emacs.d')
-rw-r--r--tag-emacs/emacs.d/init.org26
1 files changed, 15 insertions, 11 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index 1af7b82..6c3e35c 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -170,9 +170,9 @@ changed.  This package colours the fringe
 #+BEGIN_SRC emacs-lisp
   (use-package diff-hl
     :defer 2
-    :init (progn
-            (global-diff-hl-mode 1)
-            (add-hook 'magit-refresh-file-buffer-hook #'diff-hl-update)))
+    :config (progn
+              (global-diff-hl-mode 1)
+              (add-hook 'magit-refresh-file-buffer-hook #'diff-hl-update)))
 #+END_SRC
 
 ** magit
@@ -219,9 +219,11 @@ Disable all the bars, unless on OSX, in which case, keep the menu bar.
 #+BEGIN_SRC emacs-lisp
   (when (and menu-bar-mode (not (eq window-system 'ns)))
     (menu-bar-mode -1))
-  (when scroll-bar-mode
-    (scroll-bar-mode -1)
-    (tooltip-mode -1)
+  (with-eval-after-load 'scroll-bar
+    (set-scroll-bar-mode nil))
+  (with-eval-after-load 'tooltip
+    (tooltip-mode -1))
+  (with-eval-after-load 'tool-bar
     (tool-bar-mode -1))
 #+END_SRC
 
@@ -678,8 +680,9 @@ often though, as it doesn’t really work with perspectives.
 
 #+BEGIN_SRC emacs-lisp
   (use-package relative-buffers
-    :init (progn
-            (global-relative-buffers-mode)))
+    :defer 15
+    :config (progn
+              (global-relative-buffers-mode)))
 #+END_SRC
 ** Narrowing
 
@@ -1627,9 +1630,10 @@ I can use this to keep a journal.  I should use it.
 On-the-fly error checking in programming modes?  Yes please.
 
 #+BEGIN_SRC emacs-lisp
-(use-package flycheck
-  :diminish " ✓"
-  :init (global-flycheck-mode))
+  (use-package flycheck
+    :diminish " ✓"
+    :defer 5
+    :config (global-flycheck-mode))
 #+END_SRC
 
 ** golang