+;; No package.el (for emacs 27 and later). See
+;; https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=24acb31c04b4048b85311d794e600ecd7ce60d3b
(setq package-enable-at-startup nil)
\f
;;; Package management
-;; No package.el (for emacs 26 and before)
-(when (version< emacs-version "27")
- (setq package-enable-at-startup nil)
- ;; (package-initialize)
- )
-;; for emacs 27 and later, we use early-init.el. see
-;; https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=24acb31c04b4048b85311d794e600ecd7ce60d3b
-
(progn ; `borg'
(add-to-list 'load-path
(expand-file-name "lib/borg" user-emacs-directory))
(defun b/add-elisp-section ()
(interactive)
(insert "\n")
- (previous-line)
+ (forward-line -1)
(insert "\n\f\n;;; "))
;; (defvar b/fill-column 47
:config
;; ask for GPG passphrase in minibuffer
;; this will fail if gpg>=2.1 is not available
- (if (version< "27" emacs-version)
- (setq epg-pinentry-mode 'loopback)
- (setq epa-pinentry-mode 'loopback))
+ (setq epg-pinentry-mode 'loopback)
:custom
(epg-gpg-program (executable-find "gpg")))
org-startup-folded 'content
org-catch-invisible-edits 'show-and-error
org-log-done 'time)
- (when (version< org-version "9.3")
- (setq org-email-link-description-format
- org-link-email-description-format))
(add-to-list 'org-structure-template-alist '("L" . "src emacs-lisp") t)
(add-to-list 'org-modules 'org-habit)
:bind