Specifically I want to do the same thing as (setq frame-title-format ...)
would do in my config file, but from the M-x
interactive command. M-x setq
does not seem to work.
Asked
Active
Viewed 8,827 times
2 Answers
4
To set a variable defined with defcustom
you can also use M-x set-variable
. You will not have to type the parentheses and you will have name completion.

Nicolas Dudebout
- 9,172
- 2
- 34
- 43
-
1`set-variable` only allows you to set user options, that is, variables whose documentation strings start with an asterisk character. – Sean Apr 24 '13 at 21:15
-
A user option is a variable defined by `defcustom`. I do not understand the asterisk character part of your comment. – Nicolas Dudebout Apr 24 '13 at 21:40
-
3The asterisk thing is an old convention, and it's not true anymore. – Dmitry Apr 24 '13 at 22:34
-
OK. That makes sense as I tried it and it did not work. Only defcustom does. – Nicolas Dudebout Apr 24 '13 at 23:37
-
1Yeah, I tried `M-x set-variable` for `frame-title-format` and it did not work: `[No match]`. – sligocki Apr 25 '13 at 17:48
-
This is only for `defcustom` variables as mentioned in the answer. Since `frame-title-format` is not `defcustom`ed it cannot work. – Nicolas Dudebout Apr 25 '13 at 17:55