diff options
Diffstat (limited to '.emacs')
| -rw-r--r-- | .emacs | 43 |
1 files changed, 32 insertions, 11 deletions
@@ -24,8 +24,14 @@ ;; to the default list, unless I cautiously audit every release. ;; ;; Examples: erc-modules, git-commit-setup-hook, package-archives. -(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) +(defun my/list-update (l to-add &optional to-remove) + (declare (indent 1)) + (thread-first + l (seq-union to-add) (seq-difference to-remove))) +(if (fboundp 'setopt) + (defalias 'my/setopt 'setopt) + (defalias 'my/setopt 'customize-set-variable)) ;;; Key bindings. @@ -630,14 +636,6 @@ ;; Trying out use-package. -(defun my/list-update (l to-add to-remove) - (thread-first - l (seq-union to-add) (seq-difference to-remove))) - -(if (fboundp 'setopt) - (defalias 'my/setopt 'setopt) - (defalias 'my/setopt 'customize-set-variable)) - (use-package emacs :when (>= emacs-major-version 28) :init @@ -658,6 +656,29 @@ :config (load-theme 'modus-vivendi)) +(use-package package + :custom + (package-selected-packages + (append '(auctex + debbugs + delight + diff-hl + elisp-benchmarks + gnus-mock + magit + markdown-mode + page-break-lines + rg + rust-mode + which-key + wgrep) + (when (<= emacs-major-version 29) + '(eglot use-package)))) + :config + (my/setopt package-archives + (my/list-update package-archives + '(("melpa" . "https://melpa.org/packages/"))))) + (use-package ediff :custom (ediff-merge-split-window-function 'split-window-vertically) @@ -683,8 +704,8 @@ (erc-use-auth-source-for-nickserv-password t) (erc-user-full-name 'user-full-name) :config - (my/setopt erc-modules (my/list-update - erc-modules '(log notifications) '(fill)))) + (my/setopt erc-modules (my/list-update erc-modules + '(log notifications) '(fill)))) (use-package icomplete :config |
