diff --git a/lisp/work-config/work-config.el b/lisp/work-config/work-config.el index e6b47cc..36b51ec 100644 --- a/lisp/work-config/work-config.el +++ b/lisp/work-config/work-config.el @@ -41,9 +41,13 @@ (add-to-list 'auto-mode-alist '("\\.mir$" . llvm-mode)) -(load-file "/scratch/benson/tools2/llvm_cgt/llvm-project/llvm/utils/emacs/llvm-mode.el") -(load-file "/scratch/benson/tools2/llvm_cgt/llvm-project/llvm/utils/emacs/tablegen-mode.el") -(load-file "/scratch/benson/tools2/llvm_cgt/llvm-project/llvm/utils/emacs/emacs.el") +(defmacro load-file? (fname) + `(when (file-exists-p ,fname) + (load-file ,fname))) + +(load-file? "/scratch/benson/tools2/llvm_cgt/llvm-project/llvm/utils/emacs/llvm-mode.el") +(load-file? "/scratch/benson/tools2/llvm_cgt/llvm-project/llvm/utils/emacs/tablegen-mode.el") +(load-file? "/scratch/benson/tools2/llvm_cgt/llvm-project/llvm/utils/emacs/emacs.el") (pop c-mode-common-hook) (add-hook 'c-mode-common-hook @@ -62,10 +66,6 @@ default-directory (deadgrep--project-root)))))) -(defmacro load-file? (fname) - `(when (file-exists-p ,fname) - (load-file ,fname))) - (load-file? "~/.emacs.d/lisp/work-config/secrets/tools-manipulation.el") (load-file? "~/.emacs.d/lisp/work-config/secrets/update_environment.el")