Sorry, forgot to finish this up: Then you can invoke the command using the 'stumpish' command line tool:
stumpish load-my-file /path/to/my/file.lisp On Tue, 20 Jun 2023 at 09:51, Phil Hudson <phil.hud...@iname.com> wrote: > > 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 <yz11...@gmail.com> wrote: > > > > Can I load this file using the terminal? > > > > On Tue, Jun 20, 2023 at 12:36 AM Michael Raskin <38a93...@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") > >> > >>