diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2022-02-13 12:32:37 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2022-02-13 12:32:37 +0100 |
| commit | f2719755e823d1dfa8246c4674652b4dfdb187f7 (patch) | |
| tree | 2fef175ceec79894533583435c29999e28a8d186 /.emacs | |
| parent | e8d81e49fccbd09c26b71be92a0d65fd957e5dac (diff) | |
| download | dotfiles-f2719755e823d1dfa8246c4674652b4dfdb187f7.tar.xz | |
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.
Diffstat (limited to '.emacs')
| -rw-r--r-- | .emacs | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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) |
