diff options
| -rw-r--r-- | .emacs | 12 | ||||
| -rw-r--r-- | .emacs-custom.el | 3 |
2 files changed, 10 insertions, 5 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) diff --git a/.emacs-custom.el b/.emacs-custom.el index 6d3c8ed..d6694cc 100644 --- a/.emacs-custom.el +++ b/.emacs-custom.el @@ -79,9 +79,6 @@ '(org-fontify-done-headline nil) '(org-fontify-quote-and-verse-blocks t) '(org-startup-indented t) - '(package-archives - '(("melpa" . "https://melpa.org/packages/") - ("gnu" . "https://elpa.gnu.org/packages/"))) '(package-selected-packages '(async auctex debbugs delight diff-hl eglot flycheck magit markdown-mode page-break-lines paradox rg rust-mode which-key wgrep)) '(page-break-lines-modes '(fundamental-mode text-mode prog-mode special-mode)) |
