diff --git a/conf/main.el b/conf/main.el index a188d39..83b93a0 100644 --- a/conf/main.el +++ b/conf/main.el @@ -296,12 +296,12 @@ filesystem and is a usb drive." (defun nd/config-reload () "Reloads main configuration file at runtime." (interactive) - (org-babel-load-file (expand-file-name "~/.emacs.d/conf/main.org"))) + (org-babel-load-file nd/conf-main)) (defun nd/config-visit () "Opens the main conf.org file (the one that really matters)." (interactive) - (find-file "~/.emacs.d/conf/main.org")) + (find-file nd/conf-main)) (defun nd/kill-current-buffer () "Kill the current buffer." diff --git a/conf/main.org b/conf/main.org index 7d1a706..7b6dbf3 100644 --- a/conf/main.org +++ b/conf/main.org @@ -365,12 +365,12 @@ filesystem and is a usb drive." (defun nd/config-reload () "Reloads main configuration file at runtime." (interactive) - (org-babel-load-file (expand-file-name "~/.emacs.d/conf/main.org"))) + (org-babel-load-file nd/conf-main)) (defun nd/config-visit () "Opens the main conf.org file (the one that really matters)." (interactive) - (find-file "~/.emacs.d/conf/main.org")) + (find-file nd/conf-main)) (defun nd/kill-current-buffer () "Kill the current buffer." diff --git a/init.el b/init.el index 358df7b..91ea3c0 100644 --- a/init.el +++ b/init.el @@ -7,7 +7,13 @@ (package-refresh-contents) (package-install 'use-package)) -(org-babel-load-file (expand-file-name "~/.emacs.d/conf/main.org")) +(defvar nd/conf-dir "~/.emacs.d/conf/" + "The absolute path to the EMACS configuration directory.") + +(defvar nd/conf-main (expand-file-name "main.org" nd/conf-dir) + "The absolute path the main EMACS configuration file.") + +(org-babel-load-file nd/conf-main) ;; (custom-set-variables ;; ;; custom-set-variables was added by Custom.