From 2d798c3fa660079caddf23a9156d5709a7387dc8 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 26 Feb 2020 23:08:24 +0100 Subject: [PATCH] Emacs: Improve readability and correctness. --- init.d/basics/package-management.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.d/basics/package-management.el b/init.d/basics/package-management.el index b63b239..cc4c9a9 100644 --- a/init.d/basics/package-management.el +++ b/init.d/basics/package-management.el @@ -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.