Browse Source

Cleanup

main
parent
commit
158e2fec78
  1. 17
      README.org
  2. 16
      init.el

17
README.org

@ -2,7 +2,7 @@
#+AUTHOR: Christopher James Hayward #+AUTHOR: Christopher James Hayward
#+EMAIL: chris@chrishayward.xyz #+EMAIL: chris@chrishayward.xyz
#+ROAM_KEY: https://github.com/chayward1/dotfiles
#+ROAM_KEY: https://github.com/chayward1/dotfiles/
#+begin_example #+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 + It's not required due to the modularity
+ Maintaining support for older versions + Maintaining support for older versions
Assuming you have completed all of the following tasks prior to proceeding further: Assuming you have completed all of the following tasks prior to proceeding further:
1. Imported the =secrets= 1. Imported the =secrets=
2. Initialized the =passwords= 2. Initialized the =passwords=
3. Defined the =host= file 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 #+begin_src emacs-lisp
;; Load the host configuration.
(let ((host-file (concat user-emacs-directory "/hosts/" system-name ".el"))) (let ((host-file (concat user-emacs-directory "/hosts/" system-name ".el")))
(when (file-exists-p host-file) (when (file-exists-p host-file)
(load-file host-file))) (load-file host-file)))
#+end_src
Load the enabled modules.
#+begin_src emacs-lisp
;; Load the enabled modules.
(dolist (m dotfiles/modules) (dolist (m dotfiles/modules)
(let ((mod-file (concat dotfiles/home "/modules/" (symbol-name m) ".el"))) (let ((mod-file (concat dotfiles/home "/modules/" (symbol-name m) ".el")))
(when (file-exists-p mod-file) (when (file-exists-p mod-file)

16
init.el

@ -1,22 +1,10 @@
;; Load the host configuration.
(let ((host-file (concat user-emacs-directory "/hosts/" system-name ".el"))) (let ((host-file (concat user-emacs-directory "/hosts/" system-name ".el")))
(when (file-exists-p host-file) (when (file-exists-p host-file)
(load-file host-file))) (load-file host-file)))
;; Load the enabled modules.
(dolist (m dotfiles/modules) (dolist (m dotfiles/modules)
(let ((mod-file (concat dotfiles/home "/modules/" (symbol-name m) ".el"))) (let ((mod-file (concat dotfiles/home "/modules/" (symbol-name m) ".el")))
(when (file-exists-p mod-file) (when (file-exists-p mod-file)
(load-file 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.
)
Loading…
Cancel
Save