dir-locals: add compile-command (commented-out)

Add example of setting up compile-command; but comment out by default to
avoid warnings loaded.
This commit is contained in:
Dirk-Jan C. Binnema
2026-02-14 08:23:25 +02:00
committed by Seth Ladygo
parent 8a29be0a9c
commit 2c924d5cb2

View File

@ -3,7 +3,15 @@
(fill-column . 80)
;; (commment-fill-column . 80)
(emacs-lisp-docstring-fill-column . 65)
(bug-reference-url-format . "https://github.com/djcb/mu/issues/%s")))
(bug-reference-url-format . "https://github.com/djcb/mu/issues/%s")
;; uncomment below (or put in .dir-locals-2.el)
;; to dtrt for M-x compile
;;
;; (eval . (setq compile-command
;; (format "make -C %s"
;; (shell-quote-argument
;; (locate-dominating-file "." "Makefile")))))
))
(c-mode . ((c-file-style . "linux")
(indent-tabs-mode . t)
(mode . bug-reference-prog)))