I’ve been learning emacs and lisp right, so I’m sure I’m missing something, but I’m trying to get highlight-indentation to work when I start emacs.
I’ve got the highlight-indentation.el file in my emacs path and after startup, I can do
M-x highlight-indentation
and all works well, but how do I get this to work on startup. I thought putting
(highlight-indentation)
in my .emacs file would work, but it didn’t. Is this because highlight-indentation is an interactive function?
The function is only applied to the current buffer. I would recommend using a hook like the following. Functions added to major mode hooks are executed when the major mode is enabled for a particular buffer.