How to get to function definition in emacs when using mucus?

I installed slime using https://github.com/thephoeron/slime-pack and want to learn a little bit of general lisp.

How do I access the source for a specific function in emacs?

for example, if I have a function:

(type-of 1) 

and I want to visit a type-of source, how can this be done?

+6
source share
1 answer

Meta .

It calls the function: slime-edit-definition

To jump to functions within your lisp implementation, you may need to do something extra to point to the sources. In SBCL, you should sb-ext:set-sbcl-source-location to the desired location in .sbclrc :

 (sb-ext:set-sbcl-source-location "/path/to/sbcl/") 

You can edit .sbclrc with Cx Cf ~/.sbclrc in Emacs.

+10
source

Source: https://habr.com/ru/post/972433/


All Articles