Emacs How to Override Shift-R for Expected Use

I checked my elisp files to make sure that I have no bindings containing Shift + R (and I did not find them). I expect SHIFT + R to print an uppercase character, but instead I get RR undefined inside the Emacs command line. This is only in the main C / C ++ modes.

Any suggestions?

Update . The key description indicates that it is undefined. How would I define it for normal expected use (capital letter R)?

+3
source share
4 answers

, " " "R". "self-insert-command":

M-x global-set-key R self-insert-command

.emacs .emacs.d/init.el:

(global-set-key "R" 'self-insert-command)

, ....

+2

deja-vu , , , , ( Windows) shift. , , , , - . , : ? , ?

+2

C-h k (-), Shift-R. , . , , . , , , .

+1

It sounds like you have the same problem. Typing Re ... in any html buffer will try to execute the R command when each R- * command was undefined. It turned out that I had a typo in my .emacs file. I had a global key card installed on (kbd "REF")instead (kbd "RET"), and the fix immediately disappeared. Therefore, I recommend checking something like this in your .emacs file.

0
source

Source: https://habr.com/ru/post/1729238/


All Articles