diff options
Diffstat (limited to 'modules/flycheck-config.el')
| -rw-r--r-- | modules/flycheck-config.el | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/flycheck-config.el b/modules/flycheck-config.el index e2e8abe9..8c3e2a7b 100644 --- a/modules/flycheck-config.el +++ b/modules/flycheck-config.el @@ -34,13 +34,12 @@ ;;; Code: (defun cj/prose-helpers-on () - "Ensure that abbrev, flyspell, and flycheck are all on." + "Ensure that `abbrev-mode' and `flycheck-mode' are on in the current buffer." (interactive) - (if (not (abbrev-mode)) - (abbrev-mode)) - ;; (flyspell-on-for-buffer-type) - (if (not (flycheck-mode)) - (flycheck-mode))) + (unless (bound-and-true-p abbrev-mode) + (abbrev-mode 1)) + (unless (bound-and-true-p flycheck-mode) + (flycheck-mode 1))) ;; ---------------------------------- Linting ---------------------------------- |
