Where do you put your project specific settings?
(defmacro project-specifics (name &rest body) (declare (indent 1)) `(progn (add-hook 'find-file-hook (lambda () (when (string-match-p ,name (buffer-file-name)) ,@body))) (add-hook 'dired-after-readin-hook (lambda () (when (string-match-p ,name (dired-current-directory)) ,@body))))) (project-specifics "projects/zombietdd" (set (make-local-variable 'slime-js-target-url) "http://localhost:3000/") (ffip-local-patterns "*.js" "*.jade" "*.css" "*.json" "*.md"))
I created this macro to help me set up local vars. So in the
example, any files in projects/zombietdd
will see
these slime-js-target-url and the find-file-in-projects patterns.
I keep these in a projects-folder to keep track of all the different settings for my projects.