;;; UMBC Bullshit ;; c-set-style to ellemetel if the source is in my UMBC homework ;; directory (since ellemtel is the devil and I refuse to code ;; anything that I don't have to in it) (setq umbc-style-path-list (list (expand-file-name "~/homework/college/cmsc"))) (add-hook 'c-mode-hook (lambda () (dolist (path umbc-style-path-list) (if (string-match path (buffer-file-name)) (c-set-style "ellemtel"))))) (add-hook 'c++-mode-hook (lambda () (dolist (path umbc-style-path-list) (if (string-match path (buffer-file-name)) (c-set-style "ellemtel")))))