Mercurial > emacs
diff lisp/progmodes/compile.el @ 19007:1606d5205bbc
(compile-command): More doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 27 Jul 1997 19:25:02 +0000 |
parents | 528cead9a6c3 |
children | 2f112911cf81 |
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)