Fork me on GitHub
#emacs
<
2022-08-03
>
otfrom13:08:09

do other people get mis-matches in C-h m when they use evil?

tomd13:08:10

do you mean for the keybindings it lists? do you use which-key? if so, do you notice the same mis-matches there?

otfrom14:08:39

which-key works. C-h m seems to be where I get some mis-matches

otfrom14:08:04

which-key doesn't tell you want the single key bindings are (or at least not that I've been able to find yet, if it does that would be cool)

tomd14:08:59

which-key-show-major-mode or which-key-show-top-level are worth a look

otfrom14:08:16

cool. I didn't know those

tomd14:08:22

fyi C-h m probably doesn't have mis-matches per se. it just says what the binding is for a given keymap. you may not get that binding because another keymap (especially the evil ones) may override it. if you fancy reading about it, noctuid covers the basics in their evil guide: https://github.com/noctuid/evil-guide#keymap-precedence and specifically this link: https://github.com/syl20bnr/spacemacs/wiki/Keymaps-guide

👍 1
otfrom15:08:31

ok, that makes sense and explains a lot

otfrom13:08:22

I'll dig out some examples as I'm not sure if transient is an issue as well

pppaul18:08:54

i'm running a default version of prelude, and i can't seem to get paredit enabled on my clojure docs (it is on my lisp docs, though) prelude-lisp.el

;; a great lisp coding hook
(defun prelude-lisp-coding-defaults ()
  (enable-paredit-mode)
  (rainbow-delimiters-mode +1))

(setq prelude-lisp-coding-hook 'prelude-lisp-coding-defaults)
prelude-clojure.el
(with-eval-after-load 'clojure-mode
  (defun prelude-clojure-mode-defaults ()
    (subword-mode +1)
    (run-hooks 'prelude-lisp-coding-hook))

  (setq prelude-clojure-mode-hook 'prelude-clojure-mode-defaults)

  (add-hook 'clojure-mode-hook (lambda ()
                                 (run-hooks 'prelude-clojure-mode-hook))))
i have run the recompile-init function, and there are no errors with the respective files

dpsutton18:08:40

i normally use add-hook rather than (setq hook …) not sure if that’s a possibility?

pppaul18:08:33

add-hook is being used, it's just doing a little more work

pppaul18:08:21

is there a way for me to step through these hooks?

pppaul18:08:05

i'm now going down the emacs debugging rabbit hole

pppaul19:08:29

by default prelude doesn't require 'prelude-clojure which is probably why my clojure buffers are all weird