Replies: 6 comments 3 replies
-
Looks like its (lisp-compile-defun). |
Beta Was this translation helpful? Give feedback.
-
Okay, so this works in the Lem config:
However, let's say I am working on a particular package I created via quicklisp and it is located in ~/common-lisp/mypackage. Let's say that package has a (myfunction () ..) that does something and let's say that I want to call it after the lisp-compile-defun in the agove (define-command ...). On the repl i would (in-package :mypackage) then (myfunction ()) and it works. How would this be best setup in Lem? If I create:
When Lem starts up there is an error because my package is not loaded up yet. I think I want to just start Lem so that the command is "available to be called" but not until C-c C-v is invoked and it should work after I manually decide to (ql:quickload :mypackage). Any suggestions on how to write that (define-command)? Do I need to use a (lambda () ... ) for this? |
Beta Was this translation helpful? Give feedback.
-
That command gives you a REPL to Lem itself, you usually want If you didn't already figure it out, you can use
First off, check other usages of |
Beta Was this translation helpful? Give feedback.
-
Thank you kindly for the info garclic0x1. Adding that to my todo list. |
Beta Was this translation helpful? Give feedback.
-
Just wanted to follow up in case some user bumps into this thread. Here is how you can create a shortcut to compile a form and do some extra things at the same time. In my case:
Thanks for the help everyone! LEM + Lisp are pure awesome. |
Beta Was this translation helpful? Give feedback.
-
Dropping in to update this with a new config to help other noobs with Lem and CLOG:
a) Put the customizations in a command.lisp file in my CLOG project folder:
b) Added the file to my :components section in the my-app.asd file:
|
Beta Was this translation helpful? Give feedback.
-
I need to create a new shortcut that does the following:
I am using the default start-lisp-repl, not sure what that is, sly, slime?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions