diff options
author | Case Duckworth | 2021-05-04 23:44:18 -0500 |
---|---|---|
committer | Case Duckworth | 2021-05-04 23:44:18 -0500 |
commit | d4f2c1fdb771ad364b2fff992a7ce918bbe3038c (patch) | |
tree | 7d30fd651b2858e71ebb2225889568c95ac187a0 | |
parent | Add flymake-mode to prog-mode-hook (diff) | |
download | emacs-d4f2c1fdb771ad364b2fff992a7ce918bbe3038c.tar.gz emacs-d4f2c1fdb771ad364b2fff992a7ce918bbe3038c.zip |
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.
-rw-r--r-- | init.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/init.el b/init.el index aadd762..b352f75 100644 --- a/init.el +++ b/init.el | |||
@@ -399,9 +399,16 @@ | |||
399 | show-paren-when-point-inside-paren t | 399 | show-paren-when-point-inside-paren t |
400 | show-paren-when-point-in-periphery t) | 400 | show-paren-when-point-in-periphery t) |
401 | 401 | ||
402 | (defun flymake-mode-except () | ||
403 | "Turn on flymake mode, except in some modes." | ||
404 | (let ((no-flymake-modes '(emacs-lisp-mode))) | ||
405 | (unless (or (member major-mode no-flymake-modes) | ||
406 | (apply #'derived-mode-p no-flymake-modes)) | ||
407 | (flymake-mode-on)))) | ||
408 | |||
402 | (:hook show-paren-mode | 409 | (:hook show-paren-mode |
403 | electric-pair-local-mode | 410 | electric-pair-local-mode |
404 | flymake-mode | 411 | flymake-mode-except |
405 | acdw/setup-fringes) | 412 | acdw/setup-fringes) |
406 | 413 | ||
407 | (add-hook 'after-save-hook | 414 | (add-hook 'after-save-hook |