generalized main conf path and loading

This commit is contained in:
ndwarshuis 2018-12-11 20:05:56 -05:00
parent d44627ac71
commit 860140deee
3 changed files with 11 additions and 5 deletions

View File

@ -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."

View File

@ -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."

View File

@ -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.