tweak(pass): only suppress confirmation on quit

This commit is contained in:
Kiana Sheibani 2026-02-04 16:35:21 -05:00
parent 7d2a1ab848
commit 68893a63f9
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -2734,7 +2734,6 @@ I use the standard Unix-style password management system, [[https://www.password
(after! pass (after! pass
(setq pass-show-keybindings nil ; Keybindings take up too much space (setq pass-show-keybindings nil ; Keybindings take up too much space
pass-suppress-confirmations t ; Quit shouldn't need a confirm step
)) ))
;; Move to right side ;; Move to right side
@ -2783,6 +2782,15 @@ When visiting a password file, the file's buffer replaces the pass buffer, which
:side 'bottom :size 8 :quit t :modeline t) :side 'bottom :size 8 :quit t :modeline t)
#+end_src #+end_src
Asking for confirmation on ~pass-quit~ is ridiculous, seeing as it doesn't actually do anything sensitive or permanent. The other instances of confirmation are comparatively much more important, so I won't touch those.
#+begin_src emacs-lisp
(defadvice! ~/pass-quit-suppress-confirmation (orig-fn)
:around #'pass-quit
(let ((pass-suppress-confirmations t))
(funcall orig-fn)))
#+end_src
* Org * Org
#+call: confpkg() #+call: confpkg()