Skip to main content

Questions tagged [defcustom]

1 vote
1 answer
59 views

How to identify the parent group(s) of a symbol defined with a defcustom form with elisp code? For instance I would like to use or write a function custom-group-of such that (custom-group-of 'delete-...
PRouleau's user avatar
  • 924
1 vote
1 answer
59 views

In a package of my own, namely skel-el, I define a user option skel-el-line1 (well, ok, I'm the only one user) which can be a string, a variable (containing some string) or a function (whithout ...
Frnçs's user avatar
  • 13
0 votes
0 answers
19 views

I have the following user customisation declaration. (defgroup px-initial-frame nil "Customisation group for position of initial frame." :group 'convenience) (defcustom px-frame-pos (...
Dilna's user avatar
  • 1,473
2 votes
0 answers
92 views

i'm writing a defcustom, and i would like to provide a list of strings containing valid options (in a manner akin to how completing-read takes a collection and you can require-match). i have tried the ...
martian's user avatar
  • 608
0 votes
2 answers
110 views

I'm trying to edit a mode's font-lock-keywords variable to use defcustom instead of defconst (which it was using previously). Obviously, this is because I want to be able to easily customize the mode'...
GDP2's user avatar
  • 1,380
1 vote
1 answer
112 views

I've got a custom variable defined: (defcustom monorail-search-mode :issues-open "Current search mode for queries (controls whether we're searching all issues, open issues, new issues, etc)&...
gct's user avatar
  • 111
1 vote
1 answer
198 views

How to properly write the default value for a non-trivial defcustom form in standard for something like I have below: a list of 3-element lists, with choices of the types? The defcustom form is: ...
PRouleau's user avatar
  • 924
2 votes
2 answers
947 views

Is it possible to run code when setting an option defined by defcustom? For example, I would like (setq my-package-option t) to install a hook. While defcustom has a :set keyword, it's documented ...
ideasman42's user avatar
  • 9,513

15 30 50 per page