antonj / Highlight-Indentation-for-Emacs

Minor modes to highlight indentation guides in emacs.
467 stars 56 forks source link

question about running at default and change color #33

Closed yilihong closed 8 years ago

yilihong commented 8 years ago

Hello, i have a two part question:

  1. How do we run this as default at start of emacs?
  2. Where shall we add those two lines to change the color of the theme, in the init.el or change the original file? cant seem to get it work if i change the init.el file

Thank you.

antonj commented 8 years ago
  1. put (highlight-indentation-mode) in your init file, you probably wan't to add this to your different mode hooks though. Example (defun aj-slim-mode-hook() (highlight-indentation-mode) (highlight-indentation-current-column-mode)) (add-hook 'slim-mode-hook 'aj-slim-mode-hook))
  2. Putting them in the init file should be fine, or customize them as part of your color theme. Example https://github.com/antonj/.emacs.d/blob/master/lisp-personal/color-themes/aj-color-theme-jsc-light.el#L31