Re: Using the :set to make an alist
Heime <[email protected]>
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <0wYbdOxBwi7mB-Cz0xMxvgR6pmu5Zo-kDhW9ixIsE5tfB3d1nhYtkAWDLjEhrs3tnKxOrZz3jlBjeh1oCmKcB2fB5Ratglf7ED-fJ4VKC3g=@protonmail.com> |
On Thursday, August 20th, 2026 at 7:17 AM, [email protected] <[email protected]> wrote: > Heime <[email protected]> writes: > > > On Thursday, August 20th, 2026 at 4:59 AM, [email protected] <[email protected]> wrote: > > > >> Heime <[email protected]> writes: > >> > >> > > >> > Where should I call setopt exactly? > >> > > >> > >> Not where, but when. After your definitions (defun, > >> defcustom) have been evaluated. You can call ‘setopt’ in an > >> elisp buffer, in the *scratch* buffer, with M-:, or in your > >> Emacs initialization file. > > > > I hoped to declare the initial value in the defcustom definition. > > There is an option for that described in the Emacs Lisp > reference manual: > > (info "(elisp) Variable Definitions") Yes there is, but can use use a let binding before the assignment like this (defcustom galaxiakos-fpln (let (basepath (assoc-default 'GLXKS orellana-fpln)) (setq galaxiakos-fpln `((GLXKS . ,basepath) (OMNIX . ,(concat basepath "/omniskon")) > > But unsure how ta apply a binding for (assoc-default 'GLXKS orellana-fpln) > > to be used as a base directory. > > > > -- > The lyf so short, the craft so long to lerne. > - Geoffrey Chaucer, The Parliament of Birds. >