diff options
Diffstat (limited to 'emacs')
| -rw-r--r-- | emacs/early-init.el | 9 | ||||
| -rw-r--r-- | emacs/init.el | 6 |
2 files changed, 12 insertions, 3 deletions
diff --git a/emacs/early-init.el b/emacs/early-init.el index edead3f..de5c85a 100644 --- a/emacs/early-init.el +++ b/emacs/early-init.el @@ -1,3 +1,8 @@ +(defun my/source-if-exists (filename) + "Load FILENAME if it exists within the dotfiles hierarchy." + (load (concat (file-truename user-emacs-directory) "../" + (substitute-in-file-name filename)) :no-error)) + (setq default-frame-alist '((height . 40) (left . 0.5) (top . 0.2) (width . 160)) gc-cons-threshold (* 50 1024 1024)) @@ -5,3 +10,7 @@ (scroll-bar-mode -1) (show-paren-mode 1) (tool-bar-mode -1) + +(my/source-if-exists "dotfiles-${UNAME}/emacs/early-init") +(my/source-if-exists "dotfiles-${DOMAIN}/emacs/early-init") +(my/source-if-exists "dotfiles-${HOST}/emacs/early-init") diff --git a/emacs/init.el b/emacs/init.el index 834f47d..41018ec 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -223,9 +223,9 @@ returns nil." (menu-bar-mode -1) (scroll-bar-mode -1))) -(source-if-exists "dotfiles-${UNAME}/emacs/init") -(source-if-exists "dotfiles-${DOMAIN}/emacs/init") -(source-if-exists "dotfiles-${HOST}/emacs/init") +(my/source-if-exists "dotfiles-${UNAME}/emacs/init") +(my/source-if-exists "dotfiles-${DOMAIN}/emacs/init") +(my/source-if-exists "dotfiles-${HOST}/emacs/init") (defun my/display-startup-time () "Displays a message saying how long it took Emacs to load." |
