emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custom-set-variables considered harmful


From: raman
Subject: Re: custom-set-variables considered harmful
Date: Mon, 06 Nov 2017 08:36:09 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Here i a useful defmacro that helps with setting things that are
customized via custom without having to think about it:

(defmacro c-setq (variable value)
  "Exactly like setq, but handles custom."
  `(funcall (or (get ',variable 'custom-set) 'set-default) ',variable ,value))
-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]