Function: ex-set

ex-set is a function alias and interactive for set-variable, defined in simple.el.gz.

Signature

(ex-set VARIABLE VALUE &optional MAKE-LOCAL)

Documentation

Set VARIABLE to VALUE. VALUE is a Lisp object.

VARIABLE should be a user option variable name, a Lisp variable meant to be customized by users. You should enter VALUE in Lisp syntax, so if you want VALUE to be a string, you must surround it with doublequotes. VALUE is used literally, not evaluated.

If VARIABLE has a variable-interactive property, that is used as if it were the arg to interactive (which see) to interactively read VALUE.

If VARIABLE has been defined with defcustom, then the type information in the definition is used to check that VALUE is valid.

Note that this function is at heart equivalent to the basic set function. For a variable defined with defcustom, it does not pay attention to any :set property that the variable might have (if you want that, use M-x customize-set-variable (customize-set-variable) instead).

With a prefix argument, set VARIABLE to VALUE buffer-locally.

When called interactively, the user is prompted for VARIABLE and then VALUE. The current value of VARIABLE will be put in the minibuffer history so that it can be accessed with \M-n, which makes it easier to edit it.

Key Bindings

Aliases

ex-set