Mercurial > emacs
changeset 19007:1606d5205bbc
(compile-command): More doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 27 Jul 1997 19:25:02 +0000 |
parents | 8a0265f609ff |
children | 12eb62604fa7 |
files | lisp/progmodes/compile.el |
diffstat | 1 files changed, 9 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/compile.el Sun Jul 27 01:54:56 1997 +0000 +++ b/lisp/progmodes/compile.el Sun Jul 27 19:25:02 1997 +0000 @@ -422,14 +422,15 @@ Sometimes it is useful for files to supply local values for this variable. You might also use mode hooks to specify it in certain modes, like this: - (setq c-mode-hook - (lambda () - (unless (or (file-exists-p \"makefile\") - (file-exists-p \"Makefile\")) - (make-local-variable 'compile-command) - (setq compile-command - (concat \"make -k \" - (file-name-sans-extension buffer-file-name))))))" + (add-hook 'c-mode-hook + (function + (lambda () + (unless (or (file-exists-p \"makefile\") + (file-exists-p \"Makefile\")) + (make-local-variable 'compile-command) + (setq compile-command + (concat \"make -k \" + (file-name-sans-extension buffer-file-name)))))))" :type 'string :group 'compilation)