From d4f2c1fdb771ad364b2fff992a7ce918bbe3038c Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 4 May 2021 23:44:18 -0500 Subject: 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. --- init.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index aadd762..b352f75 100644 --- a/init.el +++ b/init.el @@ -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 -- cgit 1.4.1-21-gabe81