[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: column-overflow-mode
From: |
Dmitry Gutov |
Subject: |
Re: column-overflow-mode |
Date: |
Wed, 25 Dec 2013 16:54:01 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Óscar Fuentes <address@hidden> writes:
> isachin <address@hidden> 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'.