Emacs: find char name, font, position, code point, encoding, etc
What is describe-char
- Alt+x
describe-char -
Show info about the character under cursor.
The info includes:
- Char's position in buffer.
- Char's Code Point (decimal, octal, hexadecimal)
- Char Name
- Encoding used for the character
- Font used
- Elisp: Syntax Class of the character from Elisp: Syntax Table
Show Cursor Position
Find Character Codepoint, Character Name
describe-char, showing info about the right arrow → character.
2022-10-07
Get Codepoint of ASCII Control Character
describe-char, showing ASCII control character CR.
Find Font Used for the Character Under Cursor
describe-char, showing current font used of a character.
Find Syntax Class of a Character
Check Character's Unicode Property
For example, check if a character is a unicode letter.
Place cursor on (or before) the char, then
Alt+x
describe-char
, then read the line “general-category”.
[see Emacs: Insert Unicode Character]
Jump to a Cursor Position
- Alt+x
goto-char - Move cursor to a given position.