summaryrefslogtreecommitdiffstats
path: root/init.el
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2020-04-12 13:42:12 -0400
committerAmin Bandali <bandali@gnu.org>2020-04-12 13:42:12 -0400
commit97141042900a4675b2fb9c8bef6bcae6c69c7f1e (patch)
tree8730ccfa957549ed38909820946dd349f0eb7489 /init.el
parent567440fa7d7f625cd2b17c80cc5f6f442dba6196 (diff)
downloadconfigs-97141042900a4675b2fb9c8bef6bcae6c69c7f1e.tar.gz
configs-97141042900a4675b2fb9c8bef6bcae6c69c7f1e.tar.xz
configs-97141042900a4675b2fb9c8bef6bcae6c69c7f1e.zip
Fix some byte-compiler warnings and remove some version workarounds
Diffstat (limited to 'init.el')
-rw-r--r--init.el14
1 files changed, 2 insertions, 12 deletions
diff --git a/init.el b/init.el
index 171ec5d..2df0724 100644
--- a/init.el
+++ b/init.el
@@ -106,14 +106,6 @@
;;; 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))
@@ -211,7 +203,7 @@
(defun b/add-elisp-section ()
(interactive)
(insert "\n")
- (previous-line)
+ (forward-line -1)
(insert "\n \n;;; "))
;; (defvar b/fill-column 47
@@ -468,9 +460,7 @@ For disabling the behaviour for certain buffers and/or modes."
: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")))