Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Doesn't this require the user to use customize-set-variable instead of setq or setq-default ? Commented Jan 20, 2020 at 6:05
  • Added example to question. Commented Jan 20, 2020 at 6:06
  • Yes, it requires you to use one of the functions I mentioned. You indicated that you wanted to take advantage of defcustom's :set function. Your question has now morphed into a different question. Clearly setq cannot take advantage of defcustom's :set function. Had you made clear your intention I would have mentioned what @phils mentioned: variable watchers. Commented Jan 20, 2020 at 15:28