isachin <[email protected]> writes:

> (require 'whitespace)
> (setq whitespace-line-column 80) ;; limit line length
> (setq whitespace-style '(face lines-tail))
> (add-hook 'prog-mode-hook 'whitespace-mode)
> (global-whitespace-mode +1)
>
> will do the trick.

For me the above highlights all text on the line starting with the 80th
character. Leo's mode highlights just the 80th character. IMO the later
is more pleasant to the eye.

There are some modes on the Emacs Wiki for doing the same, but in my
experience (from a few years ago) they all suffer from serious issues
(bad performance, display artifacts, interactions with other modes...)
Leo's approach seems promising.


_______________________________________________
gnu-emacs-sources mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnu-emacs-sources

Reply via email to