Skip to content

Instantly share code, notes, and snippets.

@mepcotterell
Created January 16, 2013 17:14
Show Gist options
  • Select an option

  • Save mepcotterell/4548901 to your computer and use it in GitHub Desktop.

Select an option

Save mepcotterell/4548901 to your computer and use it in GitHub Desktop.
Add line numbers to Emacs
;; add line numbers
(global-linum-mode 1)
;; display line numbers and column numbers
(setq line-number-mode t)
(setq column-number-mode t)
;; make sure the line numbers don't touch the text
(setq linum-format "%d ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment