[Top][All Lists]

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

RE: Using "Emacs Configure" **and** modifying .emacs

From: Drew Adams
Subject: RE: Using "Emacs Configure" **and** modifying .emacs
Date: Tue, 15 Aug 2017 16:38:41 -0700 (PDT)

> > Hint, it's called `customize-set-variable',
> > not `customize-setq-variable'. ;-)
> > You need to quote the symbol, if you want to
> > pass a literal symbol.
> I'm already starting to dislike this whole idea even more...

What whole idea?  Lisp?  `set'?  Symbols?
Functions that evaluate their arguments?

(defmacro my-custom-setq (variable value)
  `(customize-set-variable ',variable ,value))

(macroexpand '(my-custom-setq fill-column (1+ 41)))

 --> (customize-set-variable 'fill-column (1+ 41))

reply via email to

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