[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Highlighting the right margin
From: |
fortepianissimo |
Subject: |
Re: Highlighting the right margin |
Date: |
11 Oct 2005 18:41:45 -0700 |
User-agent: |
G2/0.2 |
Thanks for everyone who have replied - it turns out it has been working
all along!
After taking a closer look at highlight-beyond-fill-column.el, it
mentioned two bits:
;; Example usage:
;;
;; Customize the `highlight-beyond-fill-column-in-modes' variable to
;; setup the list of modes in which to highlight-beyond-fill-column
;;
;; Customize the `highlight-beyond-fill-column-face' variable to
;; to setup the face used for highlight-beyond-fill-column
So I did a customize-variable on highlight-beyond-fill-column-in-modes
and made it look like this in my .emacs
(custom-set-variables
...
'(highlight-beyond-fill-column-in-modes (quote ("text-mode"
"python-mode")))
...)
Now when I loaded a Python script, I can see all the text overflowing
into the right margin is underlined - this is definitely different from
the effect I was expecting (in my imagination the entire region right
to the right margin should be painted with a different shade of color).
And another odd thing: this doesn't work in text-mode (under
Python-mode it works fine).
So it's like one problem solved but two are remained. Any more
suggestions? Thanks!