Óscar Fuentes <[email protected]> writes:

> 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.

Note `lines-tail' in `whitespace-style', instead of just `lines'.

This makes it only highlight the part of the line that exceeds the
`whitespace-line-column'.

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

Reply via email to