Re: Evaluating a lisp file with stumpwm functions
Phil Hudson <[email protected]> Tue, 20 Jun 2023 09:51:03 +0100
| Newsgroups | gmane.comp.window-managers.stumpwm.devel |
|---|---|
| Message-ID | <CAJ1MqVFqiKwk6=YOMKHEMR41PZm-jxaTdJH9xs9caW1+o6E68w@mail.gmail.com> |
Yes. In your rc, create a command that prompts the user to enter a filename and then loads that file. Executing a command using the StumpWM UI is very similar to evaluating a form as described by Michael, but instead of a colon (:) you type [prefix] then semi-colon (;). From the second invocation on, the filename will be accessible in command history (using M-p to scroll backward through that history). You could even create a command that has your specific filename hard-coded and that simply loads it without prompting the user. On Tue, 20 Jun 2023 at 09:16, Yonatan Zilpa <[email protected]> wrote: > > Can I load this file using the terminal? > > On Tue, Jun 20, 2023 at 12:36=E2=80=AFAM Michael Raskin <38a938c2@rambler= .ru> wrote: >> >> >Sorry for this trivial question. >> >I have a lisp file with stumpwm functions. How do I evaluate it? >> >> Evaluate from stumpwmrc or from UI (or from connected SLIME)? >> >> In stumpwmrc: (load "/path/to/file.lisp") >> In UI: press [PREFIX] (normally C-t by default) then colon key (:); >> in the prompt type (load "/path/to/file.lisp") >> >>