generalized main conf path and loading
This commit is contained in:
parent
d44627ac71
commit
860140deee
|
@ -296,12 +296,12 @@ filesystem and is a usb drive."
|
||||||
(defun nd/config-reload ()
|
(defun nd/config-reload ()
|
||||||
"Reloads main configuration file at runtime."
|
"Reloads main configuration file at runtime."
|
||||||
(interactive)
|
(interactive)
|
||||||
(org-babel-load-file (expand-file-name "~/.emacs.d/conf/main.org")))
|
(org-babel-load-file nd/conf-main))
|
||||||
|
|
||||||
(defun nd/config-visit ()
|
(defun nd/config-visit ()
|
||||||
"Opens the main conf.org file (the one that really matters)."
|
"Opens the main conf.org file (the one that really matters)."
|
||||||
(interactive)
|
(interactive)
|
||||||
(find-file "~/.emacs.d/conf/main.org"))
|
(find-file nd/conf-main))
|
||||||
|
|
||||||
(defun nd/kill-current-buffer ()
|
(defun nd/kill-current-buffer ()
|
||||||
"Kill the current buffer."
|
"Kill the current buffer."
|
||||||
|
|
|
@ -365,12 +365,12 @@ filesystem and is a usb drive."
|
||||||
(defun nd/config-reload ()
|
(defun nd/config-reload ()
|
||||||
"Reloads main configuration file at runtime."
|
"Reloads main configuration file at runtime."
|
||||||
(interactive)
|
(interactive)
|
||||||
(org-babel-load-file (expand-file-name "~/.emacs.d/conf/main.org")))
|
(org-babel-load-file nd/conf-main))
|
||||||
|
|
||||||
(defun nd/config-visit ()
|
(defun nd/config-visit ()
|
||||||
"Opens the main conf.org file (the one that really matters)."
|
"Opens the main conf.org file (the one that really matters)."
|
||||||
(interactive)
|
(interactive)
|
||||||
(find-file "~/.emacs.d/conf/main.org"))
|
(find-file nd/conf-main))
|
||||||
|
|
||||||
(defun nd/kill-current-buffer ()
|
(defun nd/kill-current-buffer ()
|
||||||
"Kill the current buffer."
|
"Kill the current buffer."
|
||||||
|
|
8
init.el
8
init.el
|
@ -7,7 +7,13 @@
|
||||||
(package-refresh-contents)
|
(package-refresh-contents)
|
||||||
(package-install 'use-package))
|
(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
|
||||||
;; ;; custom-set-variables was added by Custom.
|
;; ;; custom-set-variables was added by Custom.
|
||||||
|
|
Loading…
Reference in New Issue