Skip to main content
12 votes

How to prevent flycheck from treating my init.el as a package file?

Here's the format that the checker is actually expecting: ;;; init.el --- Initialization file for Emacs ;;; Commentary: Emacs Startup File --- initialization for Emacs If you place this at the top ...
mpettigr's user avatar
  • 121
9 votes

Turn off global-flycheck-mode for org-mode?

I just did this by customizing flycheck-global-modes to be '(not org-mode). In the customize interface, that was clicking except and repeat and adding an org-mode entry.
Johann Hibschman's user avatar
9 votes

Automatically run org-lint through flycheck

I tried to restrict the linting to one checker with (org-lint '(link-to-local-file)), however the parsing is still going to induce a noticable delay. Maybe limiting the linter to the current subtree ...
mutbuerger's user avatar
  • 3,504
8 votes
Accepted

Flycheck: change color / thickness of underline

You can change the color but you cannot change the thickness. There are two ways: M-xlist-faces-displayRET, find flycheck-error click it, edit the underline color -> Apply and Save You can add ...
caisah's user avatar
  • 4,096
6 votes
Accepted

flycheck cannot find module for pylint

Here is an example of a working configuration Note that executable is not that of python itself (as in your case) but to actual pylintrc that you want to use. This can be achieved with the following ...
Konstantin Levinski's user avatar
5 votes
Accepted

Add include paths to flycheck and to company-irony?

Irony-mode maintainer's here. Also using ROS at work. If you use catkin, then you can get along with irony-mode easily. I do not have ROS at my disposal right now but you should be able to do ...
Guillaume Papin's user avatar
5 votes
Accepted

How to use web-mode engine-specific checkers in flycheck?

The following works, not sure if there's a "built-in" way of doing it... (flycheck-add-mode 'javascript-eslint 'web-mode) (defun my/configure-web-mode-flycheck-checkers () ;; in order to have ...
mgalgs's user avatar
  • 474
5 votes
Accepted

flycheck-gcc-include-path in .dir-locals.el

I see a few potential issues: I am not familiar with a cpp-mode; I assume you mean c++-mode. The contents of a dir-locals-file should form an alist, i.e. ((mode . vars)) instead of (mode . vars). The ...
Basil's user avatar
  • 12.5k
5 votes

Flycheck gives errors, when I use shellcheck as linter for bash scripts

apt installs an old version of flycheck, https://github.com/koalaman/shellcheck/issues/704 that does not support --external-sources, this particular commit has been merged at flycheck recently https://...
CESCO's user avatar
  • 374
5 votes

flycheck cannot enable python-flake8 configuration file not found

You can set the path to your flake8 configuration with: (setq flycheck-flake8rc "/path/to/your/flake8-config-file") As for enabling there are different ways of doing it I prefer to use an add-hook ...
xmonk's user avatar
  • 216
4 votes

Flycheck with file relative eslint executable

I don't have enough reputation to comment on the accepted solution. But I made a variation of it, that works well with nested packages (for example using lerna). This is the exact same code, however ...
Soreine's user avatar
  • 41
4 votes

Getting flycheck "jump to next/previous error" to cycle

Here's what I came up with (as a noob) after learning about condition-case, advices, universal-argument and some internals of flycheck. I usually don't write code with so little clue of what I'm doing,...
Blaisorblade's user avatar
4 votes

How can I set my Flycheck Perl include path?

(use-package flycheck :ensure t :init (global-flycheck-mode) (setq flycheck-perl-include-path '("/home/your/path/lib" "/home/your/other/path/lib")))
nc.'s user avatar
  • 171
4 votes
Accepted

Disable flycheck for LaTeX

Short answer from here : Add it to your .emacs, after flycheck initialisations : (setq flycheck-global-modes '(not LaTeX-mode latex-mode))
Welgriv's user avatar
  • 67
4 votes
Accepted

How can I disable a specific lint error for Emacs Lisp using Flycheck?

Avoiding a specific flycheck decoration is not built-in but can easily be added. The flycheck overlays are generated by flycheck-add-overlay which is luckily only called via the hook flycheck-process-...
Tobias's user avatar
  • 33.4k
4 votes

Error: No word lists can be found for the language "en_US"

Package aspell comes with Debian 11, but evidently lacks dictionaries. sudo apt-get install aspell-en Installs the English spelling dictionary for aspell.
Paul's user avatar
  • 193
4 votes

How to make flycheck checker 'ruby-rubocop' use 'bundle exec rubocop' as executable?

Use setq-local to make a variable buffer-local. It works well in a hook like this: (add-hook 'ruby-mode-hook (lambda () (setq-local flycheck-command-wrapper-function (lambda (...
llvtt's user avatar
  • 41
4 votes
Accepted

Why does Flycheck complain "mapcar called for effect" when my function returns the result of mapcar by design?

It's mainly just a warning - really a suggestion. It's pointing out that if you don't care to produce a new list from the original one, where the returned list's elements are the results of applying ...
Drew's user avatar
  • 78k
4 votes

Why does flycheck open a new buffer for error messages?

I recently experienced the same problem while editing Haskell and Typescript code, so I don't think irony-mode is at fault here. According to the documentation, I understand this is an expected ...
user6234673's user avatar
3 votes

How to prevent flycheck from treating my init.el as a package file?

The answer by @mpettigr is mostly correct, the given lines will satisfy flycheck for the file header (except that flycheck expects a newline after Commentary:). Especially if you start a new elisp ...
quazgar's user avatar
  • 341
3 votes
Accepted

Flycheck and Rust

I had very similar problem. I use OSX and both cargo and rustc weren't in exec-path. Because I see you have /Users path - I assume u run emacs on OSX too. My solution was exec-path-from-shell plugin. ...
Wojciech Polak's user avatar
3 votes

Tell Flycheck about my global variables across multiple files?

For global variables, use (defvar foo) (with no initial value). See the Elisp manual, node Compiler Errors. For functions, use (declare foo "myfile.el"). See the Elisp manual, node Declaring ...
Drew's user avatar
  • 78k
3 votes

How to disable flycheck fringe markers for warnings?

as a workaround I make it invisible by (set-face-attribute 'flycheck-fringe-warning nil :foreground (face-attribute 'fringe :background )) similarly, I removed the underline with (set-face-...
Fabio Dalla Libera's user avatar
3 votes

Getting MyPy Working in Spacemacs

In case anyone else struggles with this, simply doing pip install flake8-mypy did the trick for me.
kadd11's user avatar
  • 111
3 votes
Accepted

Flycheck r-lintr doesn't find anything

Run C-c ! C-c for r-lintr and check the output. In my case, I discovered that flycheck was not finding the /home/user/.R/lintr_cache directory -- the problem went away once I created it.
ppanko's user avatar
  • 146
3 votes

How to add a syntax checker to a major mode for flycheck?

You gave us the answer yourselves. The (flycheck-add-mode 'javascript-eslint 'web-mode) statement has to be run before enabling flycheck-mode. Simply moving the addition of web-mode as supported mode ...
Kåre Slettnes's user avatar
3 votes

How to make flycheck checker 'ruby-rubocop' use 'bundle exec rubocop' as executable?

I'll let someone else clear that issue up for Flycheck. But for completeness' sake: if you install Emacs 27 (or newer) and enable flymake-mode in Ruby buffers, Rubocop integration is there, and it ...
Dmitry's user avatar
  • 3,813
3 votes

When using flycheck, how to permanently disable pylint?

This is working for me: (use-package flycheck :config (setq-default flycheck-disabled-checkers '(python-pylint)))
rvandegrift's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible