Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

emacs: how to insert an HTML entity reference?

Tags:

emacs

Just now I was fumbling around on the keyboard and saw a  appear in the emacs buffer.

How'd I do that?

That would be handy, if I could do it on purpose.

like image 855
Cheeso Avatar asked Feb 26 '26 21:02

Cheeso


1 Answers

Every editing mode has a help page, which you can see through C-h m (when you're in that mode) or C-h f <mode-name> when in another mode. The mode's help-page shows you the current key-bindings. Looking through the help-page for html-mode, I see C-c C-n is bound to sgml-name-char, which looks likely to perform the function you describe.

like image 91
Aidan Cully Avatar answered Mar 01 '26 10:03

Aidan Cully



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!