[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] Re: font lock for text mode
From: |
Sergei Pokrovsky |
Subject: |
Re: [h-e-w] Re: font lock for text mode |
Date: |
14 Jan 2002 15:39:54 +0600 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
>>>>> "Benjamin" == Benjamin Riefenstahl <address@hidden> writes:
Benjamin> Hi Jason,
>> "Jeff Rancier" <address@hidden> writes: > (add-hook
>> 'text-mode-hook 'font-lock-mode)
>> >
>> > Should do it, eh?
Benjamin> Jason Rumney <address@hidden> writes:
>> I thought so (without testing it first), but it appears not to.
Benjamin> This works for me:
Benjamin> (add-hook 'text-mode-hook (lambda () (font-lock-mode 1)))
This is normally done with turn-on-font-lock:
(add-hook 'emacs-lisp-mode-hook 'turn-on-font-lock)
(add-hook 'text-mode-hook 'turn-on-auto-fill)
...
,----
| (defun turn-on-font-lock ()
| "Turn on Font Lock mode conditionally.
| Turn on only if the terminal can display it."
| (when (and (not font-lock-mode) window-system)
| (font-lock-mode)))
`----[font-lock.el]
--
Sergei
- [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] 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
- Re: [h-e-w] Sending a file from dired, Stefan Reichör, 2002/01/14
- [h-e-w] where is mml-attach-file defined?, Joe Riel, 2002/01/14
- Re: [h-e-w] where is mml-attach-file defined?, Matt McClure, 2002/01/15
- [h-e-w] gnuclientw.exe open in separate window?, T.Phan, 2002/01/16