help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

global-*-mode *-mode in certain mode


From: z.cHris
Subject: global-*-mode *-mode in certain mode
Date: Wed, 08 Dec 2010 15:33:50 -0000
User-agent: G2/1.0

Hi,

I use (global-hl-line-mode) to enable hl-line-mode, But i want to use
it in certain mode like cc-mode, so i add this line to mode-hook,
(setq hl-line-mode t), but it doesn't work, i enable hl-line-mode use
M-x, it shows disabled, which means at first, it's really enabled, but
i can't see any highlight.

Same problem occurs to linum-mode, maybe there are others.

Anyone knows what's wrong with it?

Thanks.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]