This should be here too.
[doldaconnect.git] / lib / emacs-local
diff --git a/lib/emacs-local b/lib/emacs-local
new file mode 100644 (file)
index 0000000..f7263a1
--- /dev/null
@@ -0,0 +1,13 @@
+; -*-Lisp-*-
+
+; Use with:
+; (add-hook 'find-file-hooks
+;           (lambda ()
+;             (load (concat default-directory "emacs-local") t)))
+
+(if
+    (string-match "\\.[ch]$" (buffer-file-name (current-buffer)))
+    (progn
+      (make-local-variable 'compile-command)
+      (setq compile-command "make -k 'CFLAGS=-g -Wall'")
+))