I'm using spacemacs on a Mac OS X laptop with a UK keyboard and I want to be able to use Alt-3 (M-3
) to insert the hash symbol #
. I tried to add this function that I found on this SO answer without any luck.
;; Allow hash to be entered
(global-set-key (kbd "M-3") (lambda () (interactive) (insert "#")))
Do I have to unset
this key combination before trying to set it? Is there anything else in the spacemacs configuration that always overwrite my user defined configuration with the "Change the current window with window 3"?
I'm used to add the hash symbol using that combination and I feel uncomfortable using anything else.