Emacs: Improve readability and correctness.

This commit is contained in:
tastytea 2020-02-26 23:08:24 +01:00
parent 980071fc5e
commit 2d798c3fa6
1 changed files with 3 additions and 2 deletions

View File

@ -30,7 +30,7 @@
(package-initialize))
;; Add path for custom packages.
(add-to-list 'load-path "~/.emacs.d/custom-packages/")
(add-to-list 'load-path (concat user-emacs-directory "custom-packages/"))
;; Install use-package if necessary.
(unless (package-installed-p 'use-package)
@ -62,7 +62,8 @@
:config
(defvar my/keyring-last-access
(time-to-seconds
(nth 4 (file-attributes (gnu-elpa-keyring-update--keyring))))
(file-attribute-access-time
(file-attributes gnu-elpa-keyring-update--keyring)))
"Last access time for the GNU ELPA keyring.")
;; Only update keyring if atime (mtime with relatime) is > 1 week ago.