Greetings earthlings,
Do you find yourself waiting interminably (more than 1 sec)
for Emacs to font lock the configure script when all you want
is a quick peek at some mis-mangled m4 spewage, reducing your
hacking frequency and inducing overstayed trips to slashdot?
Here is some ~/.emacs extract that might help:
(defvar no-font-locking-filenames '("configure")
"*List of file names to inhibit font-lock on `find-file'.
See `no-font-locking-please'.")
(defun no-font-locking-please ()
"Turn off font locking for files in `no-font-locking-filenames'.
Compare using the non-directory part of the `buffer-file-name'."
(when (and buffer-file-name
(member (file-name-nondirectory buffer-file-name)
no-font-locking-filenames))
(font-lock-mode -1)))
(add-hook 'find-file-hook 'no-font-locking-please)
_______________________________________________
gnu-emacs-sources mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources