I'm overhauling all of my keybinds and I'm trying to keep it logically consistent.
When I issue the command
describe-key -> RET
This pops up in the
RET (translated from <return>) runs the command newline (found in global-map), which is an interactive compiled Lisp function in ‘simple.el’. It is bound to RET. (newline &optional ARG INTERACTIVE)
What I don't like about this is the fact that RET is translated from < return >.
This is also the case with DEL -> < backspace >, M-DEL -> < M-backspace >, etc.
So to get rid of said indirections I issue the command:
(define-key function-key-map (kbd "<return>") 'nil)
And thus bind RET to
(define-key global-map (kbd "RET") 'newline)
But then I get this error in the minibuffer when pressing the RET key:
<return> is undefined
How do I get rid of this behavior?
I tried reading the documentation on map translations, but it is very confusing to me. Perhaps I haven't had that AHA moment.