summary refs log tree commit diff
path: root/emacs/custom/my-packages.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-06-01 19:35:59 -0700
committerFranck Cuny <franck@fcuny.net>2023-06-01 19:35:59 -0700
commita187752c824b47052d33d3bc12749b5a7d2e8191 (patch)
treed939397496dcae8a7634a93b159fab57ee1752ec /emacs/custom/my-packages.el
parentelfeed: add more feeds (diff)
downloademacs.d-a187752c824b47052d33d3bc12749b5a7d2e8191.tar.gz
🤡
Change-Id: I06b104d79deac199f9cd9cdae705e333d23cc852
Diffstat (limited to 'emacs/custom/my-packages.el')
-rw-r--r--emacs/custom/my-packages.el108
1 files changed, 0 insertions, 108 deletions
diff --git a/emacs/custom/my-packages.el b/emacs/custom/my-packages.el
deleted file mode 100644
index 62cfac0..0000000
--- a/emacs/custom/my-packages.el
+++ /dev/null
@@ -1,108 +0,0 @@
-;;; my-packages.el --- List of packages to install -*- lexical-binding: t -*-
-;; Author: Franck Cuny <franck@fcuny.net>
-
-;;; Commentary:
-
-;;; Code:
-
-(require 'package)
-(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
-
-(defvar my/package-list
-  '(eglot
-    ;; python
-    blacken
-    python-docstring
-    python-mode
-
-    ;; go
-    go-mode
-    gotest
-
-    ;; nix
-    nix-mode
-
-    ;; rust
-    rustic
-
-    ;; various configuration formats
-    chef-mode
-    dockerfile-mode
-    fish-mode
-    hcl-mode
-    jq-format
-    protobuf-mode
-    systemd
-    terraform-doc
-    terraform-mode
-    toml-mode
-    yaml-mode
-
-    ;; git
-    git-commit
-    git-link
-    git-modes
-    magit
-
-    ;; elfeed
-    elfeed
-    elfeed-org
-
-    ;; org-mode
-    org-cliplink
-
-    ;; various text modes
-    markdown-mode
-
-    ;; tree-sitter
-    tree-sitter
-    tree-sitter-langs
-
-    ;; navigation
-    cape
-    consult
-    corfu
-    marginalia
-    orderless
-    vertico
-    which-key
-    yasnippet
-
-    ;; themes
-    standard-themes
-
-    ;; packages to interact with external tools
-    exec-path-from-shell
-    envrc
-    rg)
-  "List of packages to be installed.")
-
-(defun my/packages-installed-p ()
-  "Check if all packages in `my/package-list' are installed."
-  (cl-every #'package-installed-p my/package-list))
-
-(defun my/require-package (package)
-  "Install PACKAGE unless already installed."
-  (unless (memq package my/package-list)
-    (add-to-list 'my/package-list package))
-  (unless (package-installed-p package)
-    (package-install package)))
-
-(defun my/require-packages (packages)
-  "Ensure PACKAGES are installed.
-Missing packages are installed automatically."
-  (mapc #'my/require-package packages))
-
-(defun my/install-packages ()
-  "Install all packages listed in `my/package-list'."
-  (unless (my/packages-installed-p)
-    ;; check for new packages (package versions)
-    (message "%s" "Reloading packages DB...")
-    (package-refresh-contents)
-    (message "%s" " done.")
-    ;; install the missing packages
-    (my/require-packages my/package-list)))
-
-(provide 'my-packages)
-
-;;; my-packages.el ends here