ppr
ppr

Reputation: 765

Tool-bar error message in Emacs: "better pass an explicit argument"

I have this message at every startup of Emacs :

Toggling tool-bar-mode off; better pass an explicit argument.

It is related to this line of code in my .emacs :

(tool-bar-mode nil)

I see nothing wrong in my code. How can I fix this message?

Upvotes: 0

Views: 111

Answers (1)

Justin Wood
Justin Wood

Reputation: 10061

nil is the lack of a value. The message is telling you to use an actual value.

Use (tool-bar-mode -1) instead.

Upvotes: 2

Related Questions