From 5d39f92e370722bc29187e93ae131c9b352ff9dd Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Sat, 6 Mar 2021 16:17:48 -0500 Subject: [PATCH] Add new module --- README.org | 63 +++++++++++++++++++++++++++--------------------------- init.el | 35 +++++++++++++++--------------- 2 files changed, 50 insertions(+), 48 deletions(-) diff --git a/README.org b/README.org index fc8a715..caf66fb 100644 --- a/README.org +++ b/README.org @@ -71,6 +71,7 @@ Here's a complete list of all of the options configurable for each host, and the '(core editor email + encryption desktop writing website @@ -127,43 +128,43 @@ This project makes heavy use of modern features and libraries. Since *Babel's* u * Hosts machines - Each host machines configuration loaded immediately after declaring the options, before applying any configuration. This allows system to system control while remaining immutable. Override any of the available options configurations in a host file. Here's some examples to get started: +Each host machines configuration loaded immediately after declaring the options, before applying any configuration. This allows system to system control while remaining immutable. Override any of the available options configurations in a host file. Here's some examples to get started: - + [[file:hosts/localhost.org][Termux]] - + [[file:hosts/raspberry.org][Raspberry]] - + [[file:hosts/acernitro.org][Acernitro]] - + [[file:hosts/virtualbox.org][Virtualbox]] ++ [[file:hosts/localhost.org][Termux]] ++ [[file:hosts/raspberry.org][Raspberry]] ++ [[file:hosts/acernitro.org][Acernitro]] ++ [[file:hosts/virtualbox.org][Virtualbox]] - Begin the process by loading any host specific overrides. The host configuration tangles, and loads (if it exist) using the systems name. +Begin the process by loading any host specific overrides. The host configuration tangles, and loads (if it exist) using the systems name. - #+begin_src emacs-lisp - (let ((host-file (concat dotfiles/home "/hosts/" system-name ".org"))) - (when (file-exists-p host-file) - (org-babel-load-file host-file))) - #+end_src +#+begin_src emacs-lisp +(let ((host-file (concat dotfiles/home "/hosts/" system-name ".org"))) + (when (file-exists-p host-file) + (org-babel-load-file host-file))) +#+end_src * Module directory - Breaking down the project into logical units or chapters to keep the code more maintainable and organized. This is also a fundamental requirement to achieve the goal of modularity. Here are all of the available modules, also listed in the variable ~dotfiles/modules-p~. - - + [[file:modules/core.org][Core]] - + [[file:modules/editor.org][Editor]] - + [[file:modules/email.org][Email]] - + [[file:modules/desktop.org][Desktop]] - + [[file:modules/writing.org][Writing]] - + [[file:modules/website.org][Website]] - + [[file:modules/capture.org][Capture]] - + [[file:modules/projects.org][Projects]] - + [[file:modules/interface.org][Interface]] - - By default all of the modules will load, override the variable ~dotfiles/modules~ in a host configuration to override this. - - #+begin_src emacs-lisp - (dolist (m dotfiles/modules) - (let ((mod-file (concat dotfiles/home "/modules/" (symbol-name m) ".org"))) - (when (file-exists-p mod-file) - (org-babel-load-file mod-file)))) - #+end_src +Breaking down the project into logical units or chapters to keep the code more maintainable and organized. This is also a fundamental requirement to achieve the goal of modularity. Here are all of the available modules, also listed in the variable ~dotfiles/modules-p~. + ++ [[file:modules/core.org][Core]] ++ [[file:modules/editor.org][Editor]] ++ [[file:modules/email.org][Email]] ++ [[file:modules/desktop.org][Desktop]] ++ [[file:modules/writing.org][Writing]] ++ [[file:modules/website.org][Website]] ++ [[file:modules/capture.org][Capture]] ++ [[file:modules/projects.org][Projects]] ++ [[file:modules/interface.org][Interface]] + +By default all of the modules will load, override the variable ~dotfiles/modules~ in a host configuration to override this. + +#+begin_src emacs-lisp +(dolist (m dotfiles/modules) + (let ((mod-file (concat dotfiles/home "/modules/" (symbol-name m) ".org"))) + (when (file-exists-p mod-file) + (org-babel-load-file mod-file)))) +#+end_src * Resources diff --git a/init.el b/init.el index d4941c0..ed9899e 100644 --- a/init.el +++ b/init.el @@ -23,6 +23,7 @@ '(core editor email + encryption desktop writing website @@ -77,14 +78,14 @@ ;; Hosts machines -;; Each host machines configuration loaded immediately after declaring the options, before applying any configuration. This allows system to system control while remaining immutable. Override any of the available options configurations in a host file. Here's some examples to get started: +;; Each host machines configuration loaded immediately after declaring the options, before applying any configuration. This allows system to system control while remaining immutable. Override any of the available options configurations in a host file. Here's some examples to get started: -;; + [[file:hosts/localhost.org][Termux]] -;; + [[file:hosts/raspberry.org][Raspberry]] -;; + [[file:hosts/acernitro.org][Acernitro]] -;; + [[file:hosts/virtualbox.org][Virtualbox]] +;; + [[file:hosts/localhost.org][Termux]] +;; + [[file:hosts/raspberry.org][Raspberry]] +;; + [[file:hosts/acernitro.org][Acernitro]] +;; + [[file:hosts/virtualbox.org][Virtualbox]] -;; Begin the process by loading any host specific overrides. The host configuration tangles, and loads (if it exist) using the systems name. +;; Begin the process by loading any host specific overrides. The host configuration tangles, and loads (if it exist) using the systems name. (let ((host-file (concat dotfiles/home "/hosts/" system-name ".org"))) @@ -93,19 +94,19 @@ ;; Module directory -;; Breaking down the project into logical units or chapters to keep the code more maintainable and organized. This is also a fundamental requirement to achieve the goal of modularity. Here are all of the available modules, also listed in the variable ~dotfiles/modules-p~. +;; Breaking down the project into logical units or chapters to keep the code more maintainable and organized. This is also a fundamental requirement to achieve the goal of modularity. Here are all of the available modules, also listed in the variable ~dotfiles/modules-p~. -;; + [[file:modules/core.org][Core]] -;; + [[file:modules/editor.org][Editor]] -;; + [[file:modules/email.org][Email]] -;; + [[file:modules/desktop.org][Desktop]] -;; + [[file:modules/writing.org][Writing]] -;; + [[file:modules/website.org][Website]] -;; + [[file:modules/capture.org][Capture]] -;; + [[file:modules/projects.org][Projects]] -;; + [[file:modules/interface.org][Interface]] +;; + [[file:modules/core.org][Core]] +;; + [[file:modules/editor.org][Editor]] +;; + [[file:modules/email.org][Email]] +;; + [[file:modules/desktop.org][Desktop]] +;; + [[file:modules/writing.org][Writing]] +;; + [[file:modules/website.org][Website]] +;; + [[file:modules/capture.org][Capture]] +;; + [[file:modules/projects.org][Projects]] +;; + [[file:modules/interface.org][Interface]] -;; By default all of the modules will load, override the variable ~dotfiles/modules~ in a host configuration to override this. +;; By default all of the modules will load, override the variable ~dotfiles/modules~ in a host configuration to override this. (dolist (m dotfiles/modules)