David S.
David S.

Reputation: 11148

How to customize **pylint-options** in Emacs

In pylint.el file, I found the definition:

(defcustom pylint-options '("--reports=n" "--output-format=parseable")
  "Options to pass to pylint.py"
  :type '(repeat string)
  :group 'pylint)

I tried in my .emacs file:

(setq pylint-options "--some-option")

Then I got error when I try to run pylint in Emacs.

Upvotes: 0

Views: 213

Answers (1)

Andreas Röhler
Andreas Röhler

Reputation: 4804

Command expects a list of strings, not just a string.

Like that:

(setq pylint-options '("--some-option"))

Upvotes: 1

Related Questions