Fork me on GitHub
#emacs
<
2022-10-30
>
Benjamin09:10:12

Trying out meow coming from evil. What is the scheme for defining keys say "lispy mode" + "meow normal" -> 1 thing "lispy mode" + "meow insert" -> 2nd thing

lilactown17:10:10

do you mean changing what the meow modes do when in a particular major or minor Emacs mode?

Benjamin07:10:09

yes for instance I want to define "C-l" in normal mode to a lispy command, but only in lispy mode

lilactown15:10:41

I'm not sure if you can do that, since meow uses a single global keymap for each meow state

lilactown15:10:07

what I did is define my own meow "paren" state, which I can toggle into through a key in normal state, that has all my lisp actions

lilactown16:10:35

you could perhaps write a lambda that you bind to C-l that would read the current meow state, and run the command you want based on that

Benjamin16:10:40

yea, interesting.

ericdallo18:10:20

emacs Good news for doom-emacs users that use lsp-mode for any language: https://github.com/doomemacs/doomemacs/pull/6909 fixed lsp-mode prompting the project root of external dependencies, now it should consider external files as part of the current workspace 🎉

🎉 8
4
1
💯 1
Carlo22:10:24

in the new parens of the dead series, @magnars can get completion for functions in external modules by only writing the alias and the slash. What function allows me to do that? edit: it works now, I had to call lsp-workspace-restart

ericdallo23:10:39

This is a feature that is available from clojure-lsp or via clj-refactor, it should work properly with clojure-lsp, LMK if otherwise

vemv01:10:43

for completeness: clj-refactor's is named cljr-slash . it's very well-maintained as it's our #1 feature!

🎂 2
🙌 1