How to setup Doom Emacs to be able to delete a word using +?

Left Option does work out-of-the-box.

I also tried to achieve by setting

(global-set-key (kbd "") 'backward-kill-word)
(global-set-key (kbd "") 'backward-kill-word)

but it didn’t help.

  • yramagicmanB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    It’s been a minute since I’ve used Macos, but if memory serves correctly, Macos doesn’t send the key code corresponding to meta when you hit the option key, so that’s probably part of the challenge. I know iTerm2 had an option to fix that when I was using Macos, but I’m not sure if that’s still true.

    Some quick research reveals this article on the Emacs Wiki with some hints. https://www.emacswiki.org/emacs/MetaKeyProblems