I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.3 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. ;; Init
  2. ;; This project makes heavy use of modern features and libraries. Since [[https://orgmode.org/worg/org-contrib/babel/intro.html][Org-babel]][fn:2]'s used during the initialization, [[https://orgmode.org][Org-mode]][fn:3] must load prior to importing any custom modules. My solution includes the introduction of some early intitialization code written in [[https://gnu.org/software/emacs/manual/html_node/elisp/index.html][Emacs Lisp]][fn:4].
  3. (load-file "~/.emacs.d/bin/options.el")
  4. (load-file "~/.emacs.d/bin/cleanup.el")
  5. (load-file "~/.emacs.d/bin/packages.el")
  6. ;; Load host definition
  7. ;; Begin the process by loading any host specific option overrides. The host configuration tangles, and loads (if it exist) using the systems name. If a host definition doesn't exist the default values remain.
  8. (let ((host-file (concat dotfiles/home "/hosts/" system-name ".org")))
  9. (when (file-exists-p host-file)
  10. (org-babel-load-file host-file)))
  11. ;; Load enabled modules
  12. ;; All of the modules in ~dotfiles/modules~ load after the host overrides. By default, all of the packages defined in ~dotfiles/modules-p~ load. Override this behaviour in a host configuration file.
  13. (dolist (m dotfiles/modules)
  14. (let ((mod-file (concat dotfiles/home "/modules/" (symbol-name m) ".org")))
  15. (when (file-exists-p mod-file)
  16. (org-babel-load-file mod-file))))