I insert the plus minus symbol ± frequently enough that I want to bind it to a key.
From emacs -Q, I've tried this:
(global-set-key (kbd "C-c m") "±")
However, when I enter
C-c m, the minibuffer displays
C-u 1-, suggesting it's waiting for me to finish entering a sequence.
I can bind
C-c m to other symbols:
(global-set-key (kbd "C-c m") "⇔")
This works as expected:
C-c m inserts the double-arrow
I've tried other keys as well, e.g.
(global-set-key (kbd "C-c a") "±")
This gives the same result: emacs interprets it as
Is there something special about the plus-minus glyph that makes Emacs intepret it as a prefix argument? Why can't I insert it as I would other characters?
I have solved the immediate problem by defining an abbrev to insert the plus-minus glyph, but I would like to know why the keybindings above don't work.
Inserting the character via
(insert ) does work:
(global-set-key (kbd "C-c m") (lambda () (interactive) (insert "±")))