1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-18 18:05:07 +00:00

(compile-command): More doc fix.

This commit is contained in:
Richard M. Stallman 1997-07-27 19:25:02 +00:00
parent b9c22adf8a
commit 61c4aaf86e

View File

@ -422,14 +422,15 @@ nil as an element means to try the default directory."
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)