So, I’ve tried to map a key to a different command than default, but I don’t get the desired effect.
(global-set-key (kbd "<left>") (message "Use C-f!"))
As you can see, the point is to display the message “Use C-f!” in the echo area when the left arrowkey gets pressed. However, what this does is output the message into the current buffer I’m editing.
What am I missing?
Regards,
David Lind
You should bind key to command: