Move the `load-path' tweaks to a smaller code snippet

This commit is contained in:
Gerard Vermeulen 2023-12-13 17:36:08 +01:00
parent 14486854a4
commit 5ea123c549

View File

@ -219,12 +219,6 @@ recommendation of [[info:emacs#Saving Customizations][saving customizations (inf
;;; Commentary:
;;; Code:
;; To test my own stuff in my `emacs-user-directory:'
(push (expand-file-name emacs-user-directory) load-path)
;; To use an Org git clone:
(push (expand-file-name "~/VCS/org-mode/lisp") load-path)
;; Postpone (require 'org) after shadowing Org and sh-script faces below.
(require 'cl-lib)
(when (< emacs-major-version 30)
@ -321,6 +315,12 @@ recommendation of [[info:emacs#Saving Customizations][saving customizations (inf
#+caption: Set the third set of Emacs options: upgrade Org and transient.
#+name: lst:3rd-setopt-call
#+begin_src emacs-lisp -n
;; To test my own stuff in my `emacs-user-directory:'
(push (expand-file-name emacs-user-directory) load-path)
;; To use an Org git clone:
(push (expand-file-name "~/VCS/org-mode/lisp") load-path)
;; Postpone (require 'org) after shadowing Org and sh-script faces below.
;; Enable `package-install-upgrade-built-in' to upgrade Org and transient.
;; Caveat: works with `list-packages' but not with `package-upgrade-all'.
;; Disable upgrading other packages by pinning them to "nongnu".