From f2719755e823d1dfa8246c4674652b4dfdb187f7 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Sun, 13 Feb 2022 12:32:37 +0100 Subject: Add MELPA with add-to-list I could update the Custom value to add NonGNU ELPA, but at this point I'd rather forsake Custom for lists altogether. --- .emacs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to '.emacs') diff --git a/.emacs b/.emacs index 33951e5..5561b8a 100644 --- a/.emacs +++ b/.emacs @@ -16,6 +16,16 @@ (setq custom-file "~/.emacs-custom.el") (load custom-file) +;; Some list variables I don't set via Custom. I can't tell Custom +;; "add this element, take those two away": I need to "set in stone" +;; an exhaustive list that will make me (1) scratch my head a few +;; months later when I try to remember which of those items I added, +;; and which were part of the default list (2) miss out on additions +;; 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) + (when (>= emacs-major-version 28) (setq modus-themes-bold-constructs t modus-themes-deuteranopia t @@ -319,8 +329,6 @@ (add-hook 'magit-pre-refresh-hook 'diff-hl-magit-pre-refresh) (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh) -;; Don't use Customize here, since that would set the variable's value -;; in stone, and I would miss out on future updates by Magit. (add-hook 'git-commit-setup-hook 'git-commit-turn-on-flyspell) (setq magit-process-finish-apply-ansi-colors t) -- cgit v1.2.3