diff options
| author | Jesús <heckyel@hyperbola.info> | 2019-03-03 19:46:51 -0500 |
|---|---|---|
| committer | Jesús <heckyel@hyperbola.info> | 2019-03-03 19:46:51 -0500 |
| commit | 6457d54ec74f54b331039ccb2949ba13dbe87706 (patch) | |
| tree | e3ce63a214cc9289e2b0869fc80da967da0d91b8 /modules/init-utils.el | |
| parent | ee86ebea76af981a1ab5f2c8f4f31a520479d8fb (diff) | |
| download | emacs-personal-6457d54ec74f54b331039ccb2949ba13dbe87706.tar.lz emacs-personal-6457d54ec74f54b331039ccb2949ba13dbe87706.tar.xz emacs-personal-6457d54ec74f54b331039ccb2949ba13dbe87706.zip | |
Do not hard-code ~/emacs.d
Instead, use user-emacs-directory
Diffstat (limited to 'modules/init-utils.el')
| -rw-r--r-- | modules/init-utils.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/init-utils.el b/modules/init-utils.el index ffcdd9f..e2cb42e 100644 --- a/modules/init-utils.el +++ b/modules/init-utils.el @@ -13,7 +13,7 @@ read the .el files" (mapc load-it (directory-files dir nil "\\.el$")))) ;; Load lib functions -(load-directory (expand-file-name "~/.emacs.d/modules/lib/" user-emacs-directory)) +(load-directory (concat user-emacs-directory "/modules/lib/")) ;; This is borrowed from https://github.com/purcell/emacs.d/blob/master/lisp/init-utils.el by Steve Purcell but I have added some stuff. (if (fboundp 'with-eval-after-load) @@ -25,7 +25,7 @@ read the .el files" '(progn ,@body)))) ;; Elapsed time -(load-file "~/.emacs.d/modules/lib/myemacs.el") +(load-file (concat user-emacs-directory "/modules/lib/myemacs.el")) (provide 'init-utils) ;;; init-utils.el ends here |
