I sometimes explore customisable variables in Custom-mode
to get a structured overview, before manually setting them with setq-default
in my .emacs
. Can I make Custom-mode
show the Lisp names of the variables/faces in addition to the having access to the TUI widgets?
It looks like these:
custom-variable-default-form
custom-face-default-form
can be set to edit
for widgets and lisp
for lisp names. However:
- You cannot show both. In particular, choices are not listed in
lisp
mode, and choices are often not listed in the description, andxref-find-definitions
fails to go to the source. - They do not take priority over
defcustom
's:custom-form
. In practice this doesn't seem likely to be an issue. My Emacs Lisp is not great, but maybe adding advice to e.g.custom-variable-value-create
can override this.
custom-unlispify-tag-names
,custom-unlispify-remove-prefixes
, andcustom-unlispify-menu-entries
. – Drew Oct 19 '16 at 15:02M-x customize-option
. – Drew Oct 19 '16 at 21:45customize
? It offers various widgets, which can helpfully display things like valid choices for a variable. This is useful for exploring options. If you enable lisp-style names and editing, the controls are no longer present. I want to both: a) be able to use the controls; b) see the lisp names for later programmatic use of these variables. – Sam Brightman Oct 19 '16 at 22:02nil
as the value ofcustom-unlispify-tag-names
, for instance. So far, your description of the problem is not clear, to me at least. Consider adding a screenshot, if you cannot describe it with words? – Drew Oct 19 '16 at 22:56