Remove flycheck checker in flycheck-mode-hook

Removing it in the emacs mode hook caused an issue when flycheck mode
was not yet enabled.
This commit is contained in:
Ivan Malison 2016-06-21 17:01:06 -07:00
parent 7c40a18221
commit 8f0d4907dc

View File

@ -2167,11 +2167,11 @@ Reduce indentation for some functions
(when (s-starts-with? "*" (buffer-name)) (when (s-starts-with? "*" (buffer-name))
(flycheck-disable-checker 'emacs-lisp-checkdoc))) (flycheck-disable-checker 'emacs-lisp-checkdoc)))
(add-hook 'emacs-lisp-mode-hook 'imalison:maybe-remove-flycheck-checkdoc-checker)
(add-hook 'emacs-lisp-mode-hook 'imenu-elisp-sections) (add-hook 'emacs-lisp-mode-hook 'imenu-elisp-sections)
(add-hook 'emacs-lisp-mode-hook (lambda () (add-hook 'emacs-lisp-mode-hook (lambda ()
(setq indent-tabs-mode nil) (setq indent-tabs-mode nil)
(setq show-trailing-whitespace t))) (setq show-trailing-whitespace t)))
(add-hook 'flycheck-mode-hook 'imalison:maybe-remove-flycheck-checkdoc-checker)
#+END_SRC #+END_SRC
***** Keybinds ***** Keybinds
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp