24 votes
Accepted

suppress warning: assignment to free variable (and others)

For the benefit of clueless readers arriving here, allow me a small digression to say that these warnings generally point to real code issues (and when they don't, you can suppress them on a per-...
user avatar
  • 22.4k
17 votes
Accepted

How to turn off `emacs-lisp-checkdoc` of flycheck when edit source block in org-mode file?

tl;dr Disable the checker emacs-lisp-checkdoc with the org-src-mode-hook. (defun disable-fylcheck-in-org-src-block () (setq-local flycheck-disabled-checkers '(emacs-lisp-checkdoc))) (add-hook '...
user avatar
  • 3,241
12 votes
Accepted

Disable Minor Mode in Major Mode

As per comments, this is because you're using a globalized minor mode: https://stackoverflow.com/questions/6837511/automatically-disable-a-global-minor-mode-for-a-specific-major-mode C-hf global-...
user avatar
  • 43.5k
10 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 ...
user avatar
  • 101
9 votes
Accepted

flycheck/bash - i'd like to declare that the next line was intentional

Thanks J David for forcing me to look more deeply. flycheck.el defines sh-bash, the checker used for bash; and that has a next-checker known as sh-shellcheck. Ans, as Jordon is points out, that ...
user avatar
  • 576
9 votes
Accepted

How can I turn off flycheck minor mode for given directory

Well you wouldn't want to remove the hook, as that's a global effect. You can disable the mode on a per-buffer basis, though. Use the eval pseudo-variable. e.g. a .dir-locals.el like this would act ...
user avatar
  • 43.5k
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.
user avatar
8 votes

How can I prevent flycheck-mode from checking certain files?

You can easily disable checkers using (setq flycheck-disabled-checkers '(sh-shellscript sh-bash sh-zsh)) The Flycheck documentation adds more information here. You can also disable checkers in a ...
user avatar
  • 909
8 votes
Accepted

Automatically add project directory to flycheck clang/gcc include path

Use projectile-project-root to get the root path and add it to the list with a c++-mode-hook (defun setup-flycheck-clang-project-path () (let ((root (ignore-errors (projectile-project-root)))) (...
user avatar
8 votes
Accepted

spacemacs flycheck: use specific linter for python

Replace your relevant configuration with this: (add-hook 'python-mode-hook (lambda () (flycheck-mode 1) (semantic-mode 1) ...
user avatar
  • 4,535
8 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 ...
user avatar
  • 3,319
7 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 ...
user avatar
  • 3,916
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 ...
user avatar
5 votes

Starting a virtualenv for emacs to use

I don't think there's a prebuilt way to do this. I hacked around it like so. This depends on having all of your virtualenvs in ~/.virtualenvs, and having projectile installed. (defvar my:virtualenv-...
user avatar
  • 1,272
5 votes
Accepted

'Symbol's value as variable is void' in callback from url-retrieve

You can achieve this locally by using cl.el's lexical-let: (eval-when-compile '(require 'cl)) (defun my-test-caller (func) (lexical-let ((ext-func func)) (url-retrieve "http://www.google.com" ...
user avatar
  • 4,546
5 votes
Accepted

Concatenate multiple 'help-echo strings

The help-echo property can be a function that returns the actual string to display, so you could add an additional overlay with higher priority with a special help-echo property which will compute the ...
user avatar
  • 25.3k
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 ...
user avatar

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