[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Changing Color Of Column # In Modeline
From: |
Drew Adams |
Subject: |
RE: Changing Color Of Column # In Modeline |
Date: |
Fri, 25 Nov 2005 16:01:23 -0800 |
Well, I tried using the first emacs 21 example above and then
eventually all of them in the last post. After evaluating it, I would
toggle "tcl-mode", "which-func-mode", and even "font-lock-mode" in
various combinations as well as simply exiting emacs and restarting it.
No luck. The column value still remains in the same font/weight no
matter what column I have the cursor on.
Any ideas what I may be doing incorrectly?
I tested it in GNU Emacs 21.3.1 (i386-mingw-nt5.1.2600) of 2004-03-10 on
NYAUMO. Did you use emacs -q? Do that first (always), to be sure there is
not something else in your environment that is interfering. If it works with
emacs -q but it doesn't work when you load your init file, then email me
off-list and we can try to figure out what the problem is.
I suspect that the problem might be that I showed you `setq', not
`setq-default'. The former only turns this on for the current buffer; the
latter makes it the default behavior. Which one you use depends on how you
want to use this (e.g. in a certain mode hook or systematically). If you
just want this on all the time by default, then use `setq-default'.
1. emacs -q
2. Paste the code (from my email of 11/23 at 10:22) into buffer *scratch*.
That is, the first assignment to mode-line-format (the long one from my
email).
3. M-x eval-buffer
4. C-u M-x column-number-mode
>From then on, whenever the cursor is in column 51 or greater, the column
indicator in the mode line should be bold.
(The hard-coded `50' should ultimately be changed to a user option such as
the `my-column-limit' I provided.)
HTH.
- Changing Color Of Column # In Modeline, gamename, 2005/11/21
- Re: Changing Color Of Column # In Modeline, M Jared Finder, 2005/11/22
- Re: Changing Color Of Column # In Modeline, rgb, 2005/11/22
- Re: Changing Color Of Column # In Modeline, gamename, 2005/11/22
- Re: Changing Color Of Column # In Modeline, M Jared Finder, 2005/11/22
- Re: Changing Color Of Column # In Modeline, Kevin Rodgers, 2005/11/23
- RE: Changing Color Of Column # In Modeline, Drew Adams, 2005/11/23
- Message not available
- Re: Changing Color Of Column # In Modeline, gamename, 2005/11/23
- RE: Changing Color Of Column # In Modeline, Drew Adams, 2005/11/24
- Message not available
- Re: Changing Color Of Column # In Modeline, gamename, 2005/11/25
- RE: Changing Color Of Column # In Modeline,
Drew Adams <=
- Message not available
- Re: Changing Color Of Column # In Modeline, gamename, 2005/11/26
- RE: Changing Color Of Column # In Modeline, Drew Adams, 2005/11/26
- Message not available
- Re: Changing Color Of Column # In Modeline, gamename, 2005/11/26
Re: Changing Color Of Column # In Modeline, Ilya Zakharevich, 2005/11/22