lang/emacs-lisp: restore flycheck in elisp buffers

However, with `emacs-lisp-checkdoc` disabled and `emacs-lisp`
significantly gimped.

byte-compile-warnings may need to be adjusted to allow for *some*
warnings.

Also, reformat emacs-lisp-mode hooks
This commit is contained in:
Henrik Lissner 2019-05-02 20:42:43 -04:00
parent ee7ff68ae4
commit 25beb4bcfd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 24 additions and 7 deletions

View file

@ -48,12 +48,16 @@ This marks a foldable marker for `outline-minor-mode' in elisp buffers.")
#'(;; 3rd-party functionality
auto-compile-on-save-mode
outline-minor-mode
;; fontificiation
rainbow-delimiters-mode
highlight-quoted-mode
;; initialization
+emacs-lisp|extend-imenu))
;; Flycheck's two emacs-lisp checkers produce a *lot* of false positives in
;; emacs configs, so disable it when you're editing them
(add-hook 'flycheck-mode-hook #'+emacs-lisp|disable-flycheck-maybe)
;; emacs configs, so we disable `emacs-lisp-checkdoc' and reduce the
;; `emacs-lisp' checker's verbosity.
(add-hook 'flycheck-mode-hook #'+emacs-lisp|reduce-flycheck-errors-in-emacs-config)
;; Special fontification for elisp
(font-lock-add-keywords
@ -64,8 +68,6 @@ This marks a foldable marker for `outline-minor-mode' in elisp buffers.")
(when +emacs-lisp-enable-extra-fontification
`((+emacs-lisp-highlight-vars-and-faces . +emacs-lisp--face)))))
(add-hook! 'emacs-lisp-mode-hook #'(rainbow-delimiters-mode highlight-quoted-mode))
;; Recenter window after following definition
(advice-add #'elisp-def :after #'doom*recenter)