Closed wyntau closed 8 years ago
Sorry, my fault. I should use (spacemacs/toggle-indent-guide-globally-on)
insteadof (spacemacs/toggle-indent-guide-on)
(spacemacs/toggle-indent-guide-globally-on)
doesn't work when I set (setq indent-guide-recursive t)
@passchaos I use the following code. Recursive indent works most of the time.
(with-eval-after-load 'indent-guide
(when (boundp 'indent-guide-inhibit-modes)
;; fix for crash on home page
(push 'spacemacs-buffer-mode indent-guide-inhibit-modes))
;; configure indent guide
(setq indent-guide-char "·")
(setq indent-guide-recursive t)
(setq indent-guide-delay 0.2)
)
;; use indent-guide globally
(spacemacs/toggle-indent-guide-globally-on)
;; disable indent-guide in visual mode
(add-hook 'evil-visual-state-entry-hook #'spacemacs/toggle-indent-guide-off)
(add-hook 'evil-visual-state-exit-hook #'spacemacs/toggle-indent-guide-on)
If I put
(spacemacs/toggle-indent-guide-on)
indotspacemacs/user-config
, it did not work after emacs startupBut if I use
SPC :spacemacs/toggle-indent-guide-on
after emacs started, it works again.Where should I put these toggle code to avoid toggle some configuration every time I start emacs?
my .spacemacs file is below