Emacs highlighting part of lines that go over 80 chars

How to make Emacs highlighting part of lines that go over 80 chars?

asked May 20, 2014 by anonymous

1 Answer

 
Best answer

I use the whitespace mode:

;; `lines-tail`, highlight the part that goes beyond the
;; limit of `whitespace-line-column`
(require 'whitespace)
(setq whitespace-style '(face empty tabs lines-tail trailing))
(global-whitespace-mode t)

More: https://github.com/zma/emacs-config/blob/master/.emacs

answered May 20, 2014 by Eric Z Ma (44,280 points)
edited May 20, 2014 by Eric Z Ma

Alternatively, you can run highlight-lines-matching-regexp with the expression .\{81\}. http://stackoverflow.com/questions/6344474/how-can-i-make-emacs-highlight-lines-that-go-over-80-chars

commented May 20, 2014 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...