Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use flycheck-buffer-saved-p instead #2

Merged
merged 1 commit into from
Aug 3, 2016

Conversation

aaronjensen
Copy link
Contributor

Fixes #1

According to @lunaryorn, this is the typical way to ensure that the flychecker is only run on save.

;; only saved files will be checked by mix
(setq flycheck-check-syntax-automatically '(mode-enabled save))
(add-to-list 'flycheck-checkers 'elixir-mix))
(add-to-list 'flycheck-checkers 'elixir-mix)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't remove flycheck-mix-setup. Apart from breaking existing configurations, it's also bad style—loading Emacs Lisp libraries should never have side effects, i.e. change options, etc…

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, wasn't sure about that. I was following https://github.com/flycheck/flycheck-mercury/blob/master/flycheck-mercury.el#L222 which was probably not a good example 😄

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aaronjensen No, indeed. It should also provide a setup function, imho.

@aaronjensen aaronjensen force-pushed the patch-2 branch 2 times, most recently from 7038db4 to 3b29740 Compare June 7, 2016 14:47
@jacksonrayhamilton
Copy link

@tomekowal Will you review this PR?

@tomekowal
Copy link
Owner

Thanks, looks great 👍

@tomekowal tomekowal merged commit c4e018c into tomekowal:master Aug 3, 2016
aaronjensen added a commit to aaronjensen/spacemacs that referenced this pull request Sep 1, 2016
`flycheck-mix` now uses `flycheck-buffer-saved-p` so it is safe to
flycheck on idle: tomekowal/flycheck-mix#2
TheBB pushed a commit to syl20bnr/spacemacs that referenced this pull request Oct 17, 2016
`flycheck-mix` now uses `flycheck-buffer-saved-p` so it is safe to
flycheck on idle: tomekowal/flycheck-mix#2
syl20bnr pushed a commit to syl20bnr/spacemacs that referenced this pull request Oct 19, 2016
`flycheck-mix` now uses `flycheck-buffer-saved-p` so it is safe to
flycheck on idle: tomekowal/flycheck-mix#2
george-miller pushed a commit to george-miller/spacemacs that referenced this pull request Nov 14, 2016
`flycheck-mix` now uses `flycheck-buffer-saved-p` so it is safe to
flycheck on idle: tomekowal/flycheck-mix#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants