[emacs][wip] move diff-hl to Editing
authorAmin Bandali <bandali@gnu.org>
Mon, 24 Dec 2018 19:42:01 +0000 (14:42 -0500)
committerAmin Bandali <bandali@gnu.org>
Mon, 24 Dec 2018 19:42:01 +0000 (14:42 -0500)
init.org

index c341674..8484b7b 100644 (file)
--- a/init.org
+++ b/init.org
@@ -1194,18 +1194,6 @@ There's no way I could top that, so I won't attempt to.
   :hook (dired-mode . dired-hide-details-mode))
 #+end_src
 
-*** =diff-hl=
-
-Highlight uncommitted changes in the left fringe.
-
-#+begin_src emacs-lisp
-(use-package diff-hl
-  :config
-  (setq diff-hl-draw-borders nil)
-  (global-diff-hl-mode)
-  (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh t))
-#+end_src
-
 *** Borg's =layer/essentials=
 :PROPERTIES:
 :CUSTOM_ID: borg-essentials
@@ -1273,6 +1261,18 @@ TODO: break this giant source block down into individual org sections.
 :CUSTOM_ID: editing
 :END:
 
+** =diff-hl=
+
+Highlight uncommitted changes in the left fringe.
+
+#+begin_src emacs-lisp
+(use-package diff-hl
+  :config
+  (setq diff-hl-draw-borders nil)
+  (global-diff-hl-mode)
+  :hook (magit-post-refresh . diff-hl-magit-post-refresh))
+#+end_src
+
 ** =savehist=
 
 Save minibuffer history.