2

I want to be able to use both SPC m and , as major mode localleader keybinding in Doom. With my current Doom setup, I can only use , as localleader key. SPC m is undefined currently.

1 Answer 1

1

I use this in my doom config

(setq doom-localleader-key ",")

;; Also use SPC m for localleader
(defun my/call-localleader ()
  (interactive)
  (setq unread-command-events (listify-key-sequence ",")))

(map! :leader (:desc "localleader" "m" #'my/call-localleader))

This is a hack, but I could not find any better solution to it.

1
  • Thanks! It works great for me!
    – Trung Ta
    Mar 7, 2023 at 3:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.