diff --git a/README.org b/README.org index abae6cc..74954b3 100644 --- a/README.org +++ b/README.org @@ -2,7 +2,7 @@ #+AUTHOR: Christopher James Hayward #+EMAIL: chris@chrishayward.xyz -#+ROAM_KEY: https://github.com/chayward1/dotfiles +#+ROAM_KEY: https://github.com/chayward1/dotfiles/ #+begin_example _.-="_- _ @@ -30,25 +30,24 @@ Although later versions of Emacs introduce =early-init.el=, it's not used in thi + It's not required due to the modularity + Maintaining support for older versions - + Assuming you have completed all of the following tasks prior to proceeding further: 1. Imported the =secrets= 2. Initialized the =passwords= 3. Defined the =host= file -4. Created all required symbolic links - -Load the host configuration. +4. Create a symbolic link from ~~/.emacs.d~ to this repository +5. Run emacs ~~exec emacs -mm --debug-init~ +The rest of the code in this file is to define *what* gets loaded from *where* on *which* systems. + #+begin_src emacs-lisp +;; Load the host configuration. (let ((host-file (concat user-emacs-directory "/hosts/" system-name ".el"))) (when (file-exists-p host-file) (load-file host-file))) -#+end_src - -Load the enabled modules. -#+begin_src emacs-lisp +;; Load the enabled modules. (dolist (m dotfiles/modules) (let ((mod-file (concat dotfiles/home "/modules/" (symbol-name m) ".el"))) (when (file-exists-p mod-file) diff --git a/init.el b/init.el index d407efa..e43908b 100644 --- a/init.el +++ b/init.el @@ -1,22 +1,10 @@ +;; Load the host configuration. (let ((host-file (concat user-emacs-directory "/hosts/" system-name ".el"))) (when (file-exists-p host-file) (load-file host-file))) +;; Load the enabled modules. (dolist (m dotfiles/modules) (let ((mod-file (concat dotfiles/home "/modules/" (symbol-name m) ".el"))) (when (file-exists-p mod-file) (load-file mod-file)))) -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(org-agenda-files - (quote - ("/home/chris/.local/source/secrets/org/birthdays.org" "/home/chris/.local/source/secrets/org/courses.org" "/home/chris/.local/source/secrets/org/holidays.org" "/home/chris/.local/source/dotfiles/daily/2021-02-01.org")))) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - )