Commit 042d3253ca01

Vincent Demeester <vincent@sbr.pm>
2020-02-14 16:59:29
Fix host files loading ๐Ÿ˜…
my-init-directory -> user-emacs-directory Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 1d1db7d
Changed files (2)
emacs.org
@@ -378,8 +378,8 @@
   (string-match "[0-9A-Za-z-]+" system-name)
   (substring system-name (match-beginning 0) (match-end 0)))
 
-(if (file-exists-p (downcase (concat my-init-directory "/hosts/" (my-short-hostname) ".el")))
-    (load-file (downcase (concat my-init-directory "/hosts/" (my-short-hostname) ".el"))))
+(if (file-exists-p (downcase (concat user-emacs-directory "/hosts/" (my-short-hostname) ".el")))
+    (load-file (downcase (concat user-emacs-directory "/hosts/" (my-short-hostname) ".el"))))
 #+end_src
 
 
init.el
@@ -104,8 +104,8 @@
   (string-match "[0-9A-Za-z-]+" system-name)
   (substring system-name (match-beginning 0) (match-end 0)))
 
-(if (file-exists-p (downcase (concat my-init-directory "/hosts/" (my-short-hostname) ".el")))
-    (load-file (downcase (concat my-init-directory "/hosts/" (my-short-hostname) ".el"))))
+(if (file-exists-p (downcase (concat user-emacs-directory "/hosts/" (my-short-hostname) ".el")))
+    (load-file (downcase (concat user-emacs-directory "/hosts/" (my-short-hostname) ".el"))))
 
 (use-package exec-path-from-shell       ; Set up environment variables
   :if (display-graphic-p)