how do I jump to a function definition in emacs wh

2019-04-29 05:06发布

I have installed slime using https://github.com/thephoeron/slime-pack and want to explore the common-lisp a bit more.

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

for example, if I have a function:

(type-of 1)

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

1条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-04-29 05:52

Meta .

It calls the function: slime-edit-definition

For jumping to functions inside your lisp implementation you may need to do something extra to point to the sources. In SBCL you have to sb-ext:set-sbcl-source-location to the correct place in .sbclrc:

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

You can edit .sbclrc with C-xC-f ~/.sbclrc in Emacs.

查看更多
登录 后发表回答