Skip to content

Commit

Permalink
tweak(defaults): move password and auth-source to me-builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed May 26, 2023
1 parent 960d978 commit dc3a0da
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
13 changes: 13 additions & 0 deletions core/me-builtin.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@
(use-package let-alist
:straight (:type built-in))

(use-package password-cache
:straight (:type built-in)
:custom
(password-cache t) ; Enable password caching
(password-cache-expiry 60)) ; One minute, default is 16

(use-package auth-source
:straight (:type built-in)
:custom
(auth-sources '("~/.authinfo.gpg")) ; Default auth-sources to GPG
(auth-source-do-cache t) ; Enable caching, do not keep asking about GPG key
(auth-source-cache-expiry 86400)) ; All day, default is 2h (7200)


(provide 'me-builtin)

Expand Down
12 changes: 0 additions & 12 deletions core/me-defaults.el
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,6 @@
;; Kill the shell buffer after exit
shell-kill-buffer-on-exit t

;; ====== Passwords and encryption ======
;; Enable password caching
password-cache t
;; One minute, default is 16
password-cache-expiry 60
;; Default auth-sources to GPG
auth-sources '("~/.authinfo.gpg")
;; Enable caching, do not keep asking about GPG key
auth-source-do-cache t
;; All day, default is 2h (7200)
auth-source-cache-expiry 86400

;; ====== Performances ======
;; Don’t compact font caches during GC
inhibit-compacting-font-caches t
Expand Down

0 comments on commit dc3a0da

Please sign in to comment.