I would like to remap the key "é" on my keyboard to ctrl-w in emacs evil-mode (doom emacs)
I tried with
(define-key evil-operator-state-map "é" "\C-w")
;; and
(global-set-key "é" "\C-w")
But none of these worked.
Is what I'm trying to do possible ?
How can I do it ?
Try this:
Use
(kbd KEY-SEQUENCE), whereKEY-SEQUENCEis what Emacs tells you the key sequence is.Use
key-translation-mapto translate keys. See the Elisp manual, node Translation Keymaps.