diff options
-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 |