Replace fly-make-mode with flymake-mode-except

I didn't want flymake-mode to automatically fire in emacs-lisp-mode.  I should
probably be better served by either (a) getting my Emacs config files up to
snuff or (b) adding a better test to decide whether to flymake them.
This commit is contained in:
Case Duckworth 2021-05-04 23:44:18 -05:00
parent 4c8d004ea8
commit d4f2c1fdb7
1 changed files with 8 additions and 1 deletions

View File

@ -399,9 +399,16 @@
show-paren-when-point-inside-paren t
show-paren-when-point-in-periphery t)
(defun flymake-mode-except ()
"Turn on flymake mode, except in some modes."
(let ((no-flymake-modes '(emacs-lisp-mode)))
(unless (or (member major-mode no-flymake-modes)
(apply #'derived-mode-p no-flymake-modes))
(flymake-mode-on))))
(:hook show-paren-mode
electric-pair-local-mode
flymake-mode
flymake-mode-except
acdw/setup-fringes)
(add-hook 'after-save-hook