[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[h-e-w] Re: font lock for text mode
From: |
Jeff Rancier |
Subject: |
[h-e-w] Re: font lock for text mode |
Date: |
Fri, 11 Jan 2002 15:01:31 -0500 |
Thanks Jason. I have some very large log files from customers, and I
include things like DEBUG:, NOTE:, etc. in the log file. This way I can
easily browse through them with markup.
So,
(add-hook 'text-mode-hook 'font-lock-mode)
Should do it, eh?
Jeff
----- Original Message -----
From: "Jason Rumney" <address@hidden>
To: "Jeff Rancier" <address@hidden>
Cc: "Emacs Help (Windows)" <address@hidden>
Sent: Friday, January 11, 2002 2:48 PM
Subject: Re: font lock for text mode
| "Jeff Rancier" <address@hidden> writes:
|
| > That code in fact marks up as red on yellow for all the text on the
line. I
| > tried the same for text-mode, and get no font lock. It works on c-mode,
| > jde-mode, emacs-lisp-mode, and visual-basic-mode, but not on text-mode.
|
| global-font-lock-mode will not enable font-lock in text-mode (since by
| default there is nothing to font-lock), so you probably need to
| explicitly enable it with "M-x font-lock-mode" or a mode hook.
|
| --
| Jason Rumney
- [h-e-w] font lock for text mode, Jeff Rancier, 2002/01/10
- [h-e-w] Re: font lock for text mode, Jason Rumney, 2002/01/11
- [h-e-w] Re: font lock for text mode,
Jeff Rancier <=
- [h-e-w] Sending a file from dired, Joe Riel, 2002/01/11
- Re: [h-e-w] Sending a file from dired, Henry J. Cobb, 2002/01/11
- Re: [h-e-w] Sending a file from dired, Joe Riel, 2002/01/11
- Re: [h-e-w] Sending a file from dired, Galen Boyer, 2002/01/11
- Re: [h-e-w] Sending a file from dired, Joe Riel, 2002/01/11
- Re: [h-e-w] Sending a file from dired, Jason Rumney, 2002/01/12