help-gnu-emacs
[Top][All Lists]
Advanced

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

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


From: John Mastro
Subject: Re: Using "Emacs Configure" **and** modifying .emacs
Date: Tue, 15 Aug 2017 17:09:48 -0700

Drew Adams <drew.adams@oracle.com> wrote:
>> > 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))

You could even use something like the `csetq' defined here:
https://oremacs.com/2015/01/17/setting-up-ediff/

        John



reply via email to

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