Skip to content

Commit

Permalink
elixir: flycheck on idle
Browse files Browse the repository at this point in the history
`flycheck-mix` now uses `flycheck-buffer-saved-p` so it is safe to
flycheck on idle: tomekowal/flycheck-mix#2
  • Loading branch information
aaronjensen authored and syl20bnr committed Oct 19, 2016
1 parent 3235973 commit b702b05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions layers/+lang/elixir/funcs.el
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
(forward-line -1)
(indent-according-to-mode)))

(defun spacemacs//elixir-flycheck-check-on-save-only ()
"Configure flycheck to check on save only since mix is slow."
(setq-local flycheck-check-syntax-automatically '(mode-enabled save)))

(defun spacemacs//elixir-enable-compilation-checking ()
"Enable compile checking if `elixir-enable-compilation-checking' is non nil."
(when (or elixir-enable-compilation-checking)
Expand Down
4 changes: 1 addition & 3 deletions layers/+lang/elixir/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@
:defer t))

(defun elixir/post-init-flycheck ()
(spacemacs/add-flycheck-hook 'elixir-mode)
(add-hook 'elixir-mode-hook
'spacemacs//elixir-flycheck-check-on-save-only t))
(spacemacs/add-flycheck-hook 'elixir-mode))

(defun elixir/pre-init-org ()
(spacemacs|use-package-add-hook org
Expand Down

0 comments on commit b702b05

Please sign in to comment.