Emacs: Show Cursor Column Position

By Xah Lee. Date: . Last updated: .

Show Cursor Column Number

Alt+x column-number-mode
Show line number and cursor column position in mode line (aka status bar), like this: (166,3). The first is line number, the second is position from the beginning of line.
emacs column number mode 56206
emacs column-number-mode

To always have it on, put the following code in your emacs init file.

;; show cursor position within line
(column-number-mode 1)

Show Ruler

Alt+x ruler-mode
Display a ruler at top of current window.
emacs ruler mode 2016 12 31
Emacs Alt+x ruler-mode

Emacs Cursor Position, Line Number, Column Number


Emacs Init

Init Basics

Keys

Font

Text Editing

Completion

File

Restore Things

Backup/AutoSave

Line

Appearance

Misc

Advanced Init Tips

packages