[emacs] assimilate highlight-indent-guides
authorAmin Bandali <amin@gnu.org>
Sun, 2 Sep 2018 18:43:26 +0000 (14:43 -0400)
committerAmin Bandali <amin@gnu.org>
Sun, 2 Sep 2018 18:43:26 +0000 (14:43 -0400)
.gitmodules
init.org
lib/highlight-indent-guides [new submodule]

index 43fef81..8e4e870 100644 (file)
 [submodule "helpful"]
        path = lib/helpful
        url = git@github.com:Wilfred/helpful.git
 [submodule "helpful"]
        path = lib/helpful
        url = git@github.com:Wilfred/helpful.git
+[submodule "highlight-indent-guides"]
+       path = lib/highlight-indent-guides
+       url = git@github.com:DarthFennec/highlight-indent-guides.git
 [submodule "hlint-refactor"]
        path = lib/hlint-refactor
        url = git@github.com:mpickering/hlint-refactor-mode.git
 [submodule "hlint-refactor"]
        path = lib/hlint-refactor
        url = git@github.com:mpickering/hlint-refactor-mode.git
index 2173871..206b6be 100644 (file)
--- a/init.org
+++ b/init.org
@@ -1371,6 +1371,22 @@ Make =*scratch*= and =*Messages*= unkillable.
 
 Also see [[https://www.emacswiki.org/emacs/rebox2][rebox2]].
 
 
 Also see [[https://www.emacswiki.org/emacs/rebox2][rebox2]].
 
+** [[https://github.com/DarthFennec/highlight-indent-guides][highlight-indent-guides]]
+
+#+begin_src emacs-lisp
+(use-package highlight-indent-guides
+  :demand t
+  :hook ((prog-mode . highlight-indent-guides-mode)
+         (org-mode  . highlight-indent-guides-mode))
+  :config
+  (setq highlight-indent-guides-character ?\|)
+  (setq highlight-indent-guides-auto-enabled nil)
+  (setq highlight-indent-guides-method 'character)
+  (setq highlight-indent-guides-responsive 'top)
+  (set-face-foreground 'highlight-indent-guides-character-face "gainsboro")
+  (set-face-foreground 'highlight-indent-guides-top-character-face "grey40")) ; grey13 is nice too
+#+end_src
+
 * Email
 ** [[https://notmuchmail.org][notmuch]]
 
 * Email
 ** [[https://notmuchmail.org][notmuch]]
 
diff --git a/lib/highlight-indent-guides b/lib/highlight-indent-guides
new file mode 160000 (submodule)
index 0000000..895181e
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 895181ec53a07dfef2b7183d8477454ca2606d0e