diff options
-rw-r--r-- | tag-emacs/emacs.d/init.org | 26 |
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 |