From 83b66c3567cd32a6a5d11408b87079144c5c8846 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Sun, 25 Apr 2021 18:05:26 -0400 Subject: [PATCH] Remove dotfiles/install method --- .gitignore | 3 ++- modules/capture.org | 1 - modules/core.org | 17 ----------------- modules/development.org | 2 -- modules/terminal.org | 1 - modules/website.org | 3 +-- modules/writing.org | 1 - 7 files changed, 3 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index 53bb55f..c0fbe1c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ *.el *.elc *.eln +*.eln.tmp docs/static docs/public docs/content -docs/resources/_gen \ No newline at end of file +docs/resources/_gen diff --git a/modules/capture.org b/modules/capture.org index 8919959..332d878 100644 --- a/modules/capture.org +++ b/modules/capture.org @@ -32,7 +32,6 @@ Create screencasts with =one-frame-per-action= GIF recording via *Emacs gif scre #+begin_src emacs-lisp (use-package gif-screencast - :init (dotfiles/install "scrot imagemagick") :commands (gif-screencast-start-or-stop gif-screencast-toggle-pause) :custom (gif-screencast-output-directory (concat dotfiles/home "docs/images/"))) #+end_src diff --git a/modules/core.org b/modules/core.org index 6095c3e..d038c0b 100644 --- a/modules/core.org +++ b/modules/core.org @@ -107,23 +107,6 @@ 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/ diff --git a/modules/development.org b/modules/development.org index d2ca918..84e9e57 100644 --- a/modules/development.org +++ b/modules/development.org @@ -114,7 +114,6 @@ Add support for the *C/C++* family of languages via the *CCLS*[fn:7] language se #+begin_src emacs-lisp (use-package ccls - :init (dotfiles/install "ccls") :hook ((c-mode c++-mode objc-mode cuda-mode) . (lambda () (require 'ccls) @@ -163,7 +162,6 @@ Download and install *PlantUML*[fn:11], a text-based markup language for creatin #+begin_src emacs-lisp (use-package plantuml-mode :after org - :init (dotfiles/install "default-jre") :custom (plantuml-default-exec-mode 'jar) (plantuml-jar-path "~/.local/bin/plantuml.jar") (org-plantuml-jar-path (expand-file-name "~/.local/bin/plantuml.jar")) diff --git a/modules/terminal.org b/modules/terminal.org index 636e1a9..ad9398d 100644 --- a/modules/terminal.org +++ b/modules/terminal.org @@ -52,7 +52,6 @@ Here's an example of what that looks like: (use-package vterm :commands (vterm) :custom (vterm-always-compile-module t) - :init (dotfiles/install "cmake libtool libtool-bin") :config (dotfiles/leader "v" '(vterm-other-window :which-key "Terminal"))) #+end_src diff --git a/modules/website.org b/modules/website.org index eb2f69a..b325024 100644 --- a/modules/website.org +++ b/modules/website.org @@ -16,8 +16,7 @@ Download *Ox-hugo*[fn:5] and configure it for =one-post-for-file= to add support #+begin_src emacs-lisp (use-package ox-hugo - :after ox - :init (dotfiles/install "hugo")) + :after ox) #+end_src * Posts diff --git a/modules/writing.org b/modules/writing.org index 4772448..ce10ac2 100644 --- a/modules/writing.org +++ b/modules/writing.org @@ -69,7 +69,6 @@ Download and install *Org roam*[fn:4], a plain text knowledge management system #+begin_src emacs-lisp (use-package org-roam :hook (after-init . org-roam-mode) - :init (dotfiles/install "sqlite") :custom (org-roam-directory org-directory) (org-roam-capture-templates '()) (org-roam-dailies-capture-templates '())