Emacs: describe-char, Cursor Position
What is describe-char
describe-char
is a command that gives many info about the current character e.g. codepoint, name,
plus cursor position, font used, etc.
Place cursor on the character then Alt+x describe-char
.
- Alt+x
describe-char
-
Show info about the character under cursor.
The info includes:
- Char's position in buffer.
- Char's Codepoint (decimal, octal, hexadecimal)
- Char Name
- Encoding used for the character
- Font used
- Emacs syntax class of the character. 〔see Elisp: Syntax Table〕
Show Cursor Position
Find Character Codepoint, Character Name
Get Codepoint of ASCII Control Character
Find Font Used for the Character Under Cursor
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.
Emacs and Unicode
- Emacs: Insert Unicode Character
- Emacs: Insert Emoji
- Emacs: Input Method
- Emacs: Get Character Info, Cursor Position
- Emacs Init: Update Unicode Data
File Encoding
Unicode Font Setup
Emacs, font setup
- Emacs: Change Font Size
- Emacs: Change Default Font Size by Command, for Current Session 🚀
- Emacs: Get Character Info, Cursor Position
- Emacs: Toggle Monospace / Proportional Font
- Best Unicode Fonts for Programer
- Emacs: Cycle Fonts by Command 🚀
- Emacs Init: Setup Font
- Emacs Init: Font for Unicode Symbols
- Emacs Init: Font for Emoji
- Emacs Init: Font for Chinese
- Emacs Init: Minibuffer Font Size
- Emacs Init: Variable Pitch Mode (Proportional Font)
- Elisp: Modify Default Face (Font)
- Emacs Init: Display Lambda as λ