From b6a61fdebf0b8117762b853de39065be478a80cf Mon Sep 17 00:00:00 2001 From: Davide Restivo Date: Sat, 4 May 2024 14:03:26 +0200 Subject: [PATCH 1/3] Improve comment --- init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 7a0321a..9233610 100644 --- a/init.el +++ b/init.el @@ -62,8 +62,8 @@ (when (boundp 'galactic-emacs-pdumper-dumped) ;; Restore `load-path' (setq load-path galactic-emacs-pdumper-load-path) - ;; When Emacs starts from dump file, some default modes are not - ;; enabled + ;; When Emacs starts from a dump file, some default modes are not + ;; enabled by default (global-font-lock-mode) (transient-mark-mode)) From ca283f41d241d1e306b6f6bd3d8e0de8ed7a90bf Mon Sep 17 00:00:00 2001 From: Davide Restivo Date: Sat, 4 May 2024 14:12:17 +0200 Subject: [PATCH 2/3] Remove unneeded gnu-elpa-keyring-update use-package section and improve commentary --- init.el | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/init.el b/init.el index 9233610..53d9130 100644 --- a/init.el +++ b/init.el @@ -95,11 +95,14 @@ ;; Bootstrap `gnu-elpa-keyring-update' ;; -;; If your keys are already too old, causing signature verification -;; errors when installing packages, then in order to install this -;; package you have to temporarily disable signature verification -;; (see variable `package-check-signature') :-( +;; This package updates the GPG keys used by the ELPA package manager +;; (a.k.a `package.el') to verify authenticity of packages downloaded +;; from the GNU ELPA archive. (unless (package-installed-p 'gnu-elpa-keyring-update) + ;; If your keys are already too old, causing signature verification + ;; errors when installing packages, then in order to install this + ;; package you have to temporarily disable signature verification + ;; (see variable `package-check-signature') :-( (let ((package-check-signature nil)) (package-refresh-contents) (package-install 'gnu-elpa-keyring-update) @@ -107,9 +110,18 @@ (setq epg-gpg-program "/usr/local/bin/gpg") (setq package-gnupghome-dir (expand-file-name "elpa/gnupg" user-emacs-directory)) + (setq package-check-signature + (when (executable-find "gpg") 'allow-unsigned)) (gnu-elpa-keyring-update))) ;; Bootstrap `use-package' +;; +;; The use-package macro allows you to isolate package configuration +;; in your .emacs file in a way that is both performance-oriented and, +;; well, tidy. I created it because I have over 80 packages that I use +;; in Emacs, and things were getting difficult to manage. Yet with +;; this utility my total load time is around 2 seconds, with no loss +;; of functionality! (unless (package-installed-p 'use-package) (package-refresh-contents) (package-install 'use-package) @@ -128,25 +140,15 @@ (setq use-package-compute-statistics t) ;; Bootstrap `diminish' +;; +;; This package implements hiding or abbreviation of the mode line +;; displays (lighters) of minor-modes. (unless (package-installed-p 'diminish) (package-refresh-contents) (package-install 'diminish)) (eval-when-compile (require 'diminish)) -;; gnu-elpa-keyring-update -;; -;; This package updates the GPG keys used by the ELPA package manager -;; (a.k.a `package.el') to verify authenticity of packages downloaded -;; from the GNU ELPA archive. -(use-package gnu-elpa-keyring-update - :ensure t - :init - (setq package-check-signature - (when (executable-find "gpg") 'allow-unsigned)) - :config - (gnu-elpa-keyring-update)) - ;; system-packages (use-package system-packages :ensure t From 63f9362c65edb69d868f70c8a959189f4409f144 Mon Sep 17 00:00:00 2001 From: Davide Restivo Date: Sat, 4 May 2024 14:59:44 +0200 Subject: [PATCH 3/3] Cleanup commentary --- init.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/init.el b/init.el index 53d9130..fd1236d 100644 --- a/init.el +++ b/init.el @@ -118,10 +118,7 @@ ;; ;; The use-package macro allows you to isolate package configuration ;; in your .emacs file in a way that is both performance-oriented and, -;; well, tidy. I created it because I have over 80 packages that I use -;; in Emacs, and things were getting difficult to manage. Yet with -;; this utility my total load time is around 2 seconds, with no loss -;; of functionality! +;; well, tidy. (unless (package-installed-p 'use-package) (package-refresh-contents) (package-install 'use-package)