guicho271828 / trivia

Pattern Matcher Compatible with Optima
Other
335 stars 22 forks source link

SWANK integration #69

Open guicho271828 opened 7 years ago

guicho271828 commented 7 years ago

Jump to the pattern definition with M-.

PuercoPop commented 7 years ago

@guicho271828 Do you have any plans as to how to hook with SLIME's machinery? find-definitions is a function (definterface/defimplementation) and doesn't seem to provide any hooks

guicho271828 commented 7 years ago

Because I found this http://melisgl.github.io/mgl-pax-world/mgl-pax-manual.html#x-28MGL-PAX-3A-40MGL-PAX-EMACS-INTEGRATION-20MGL-PAX-3ASECTION-29

guicho271828 commented 7 years ago

Now I actually read the source code in the link. It looks like SLIME has slime-edit-definition-hooks where I can add something. Copy-pasting the above code and changing some location-fetching part might be enough for making it work.