How can I show vertical indentations markers with Emacs?
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 2 Looping
--
Chapters
00:00 How Can I Show Vertical Indentations Markers With Emacs?
00:18 Accepted Answer Score 10
00:50 Answer 2 Score 1
01:08 Answer 3 Score 3
01:40 Thank you
--
Full question
https://superuser.com/questions/608623/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#emacs #packages #indentation #indent
#avk47
ACCEPTED ANSWER
Score 10
I guess this and this could be an answer to your question.
Installation is easy. Invoke git clone git@github.com:antonj/Highlight-Indentation-for-Emacs.git .
in, say, ~/.emacs.d/highlight-indents
and add
(add-to-list 'load-path "~/.emacs.d/packages/highlight-indents/")
(require 'highlight-indentation)
to your .emacs
. Then, when visiting a file you can M-x highlight-indentation-mode RET
to enable the minor mode.
ANSWER 2
Score 3
You can also use highlight-indent-guides-mode
and add it as a hook to prog-mode
, so that it gets loaded automatically.
In Spacemacs, I did it by first installing it with M-x package-install
or adding it as a user-defined package in .spacemacs
, then M-x customize-group
, prog-mode
, prog-mode
hooks, "ins", enter highlight-indent-guides-mode
.
You can configure it via M-x customize-group
highlight-indent-guides
and change the indent character, coloring, etc.
So far, it works wonders and renders quickly.
ANSWER 3
Score 1
I think you may want to look at indent-guide mode. It gives indentation of code blocks dynamically when we move the cursor. Moreover, it is easy to set up your favorite indent characters like :
and |
as well as the background color of intentions.