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
![emacs cursor position 2022-10-07 9FyNM](i/emacs_cursor_position_2022-10-07_9FyNM.png)
describe-char
, showing cursor position. 2022-10-07
Find Character Codepoint, Character Name
![emacs unicode codepoint 2022-10-07](i/emacs_unicode_codepoint_2022-10-07.png)
describe-char
, showing info about the right arrow → character.
2022-10-07
Get Codepoint of ASCII Control Character
![emacs describe-char CR 2021-12-09](i/emacs_describe-char_CR_2021-12-09.png)
describe-char
, showing ASCII control character CR.
Find Font Used for the Character Under Cursor
![emacs describe-char 2021-09-25 TyYb](i/emacs_describe-char_2021-09-25_TyYb.png)
describe-char
, showing current font used of a character.
Find Syntax Class of a Character
![emacs describe char syntax class 2022-10-07](i/emacs_describe_char_syntax_class_2022-10-07.png)
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]
![emacs describe-char 2022-02-19](i/emacs_describe-char_2022-02-19.png)
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 λ