hide automatic nameless behind a nameless-auto-mode switch

This commit is contained in:
Adriean Khisbe 2017-10-25 13:37:49 +02:00 committed by syl20bnr
parent 2d40793804
commit 3dc09cfc4d
1 changed files with 2 additions and 1 deletions

View File

@ -183,7 +183,8 @@
(use-package nameless
:defer t
:init (progn
(add-hook 'emacs-lisp-mode-hook 'nameless-mode-from-hook)
(when (bound-and-true-p nameless-auto-mode)
(add-hook 'emacs-lisp-mode-hook 'nameless-mode-from-hook))
(spacemacs|add-toggle nameless
:status nameless-mode
:on (nameless-mode)