I am editing a file and I want to set the tab width (more likely the indent width) to 2 and I have come across a command (setq tab-width 2)
but when I use M-x
(i.e. Alt-x
) on my system and I enter (setq tab-width 2)
I get the message [No match].
I think the keystroke M-x
is the wrong one. I get list of commands to select from, but what I am looking for is the right place to change a setting in Emacs with a Lisp command.
set-variable
interactive command:M-x set-variable tab-width ...