From Issue #6October 1994
Several small flaws in the article. The local emacs variables need to be at the end of the source. Or at least for Xemacs they do, they didn't work when in the middle of my code.
/* Local Variables: */
/* mode: C */
/* compile-command: "cd ..; make -k" */
/* End: */
The above works for my projects where the source lives 1 directory below the Makefile.
The compile key bindings are missing some backslashes before the C
;; Save and Compile
;; Uses the compile-command variable which can be set in the source
(defun my-save-and-compile ()
(define-key c-mode-map "C-cC-c" 'my-save-and-compile)
The above uses the compile-command set by the source. If none has been set then make -k is the system default.
Brian Lane(too busy to find my login)