mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
More conditional loads
This commit is contained in:
parent
b8386ef1ef
commit
5835dd3e12
1 changed files with 7 additions and 7 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue