From dc9fb6ffe7a51293542c9c3c754779caf62fb63d Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Thu, 18 Mar 2021 21:17:39 -0400 Subject: [PATCH] Cleanup --- modules/core.org | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/modules/core.org b/modules/core.org index 89e1d27..55e2b3c 100644 --- a/modules/core.org +++ b/modules/core.org @@ -80,23 +80,6 @@ Despite having our *stateful* and *immutable* configurations seperate, it's good Define some helper methods to use throughout the configuration. -** Packages - -Define a method to install system packages on *Debian/Ubuntu* derived systems. - -+ Use temporary buffer -+ Use ~-y~ option to silence unwanted prompts -+ Use ~--no-install-recommends~ option to minimize dependencies - -#+begin_src emacs-lisp -(defun dotfiles/install (pkgs) - "Install system packages on Debian/Ubuntu systems." - ;; (with-temp-buffer - ;; (async-shell-command - ;; (concat "sudo apt install -y --no-install-recommends " pkgs))) -) -#+end_src - ** Tangle directory Build all of the *Org*[fn:4] files within a given directory, recursively. @@ -124,6 +107,23 @@ Function that takes in a system and configuration file path, checks to see if th (make-symbolic-link dot-file sys-file)))) #+end_src +** Install system packages + +Define a method to install system packages on *Debian/Ubuntu* derived systems. + ++ Use temporary buffer ++ Use ~-y~ option to silence unwanted prompts ++ Use ~--no-install-recommends~ option to minimize dependencies + +#+begin_src emacs-lisp +(defun dotfiles/install (pkgs) + "Install system packages on Debian/Ubuntu systems." + ;; (with-temp-buffer + ;; (async-shell-command + ;; (concat "sudo apt install -y --no-install-recommends " pkgs))) +) +#+end_src + * Resources [fn:1] https://chrishayward.xyz/posts/immutable-emacs/