X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/blobdiff_plain/ce72f966bd3d133fa69491cb7286e4f0f12c2ae1..3f6f18c591daaf9a25230aeca7bcc5ef3b52cbdd:/.emacs.d/init.el?ds=sidebyside diff --git a/.emacs.d/init.el b/.emacs.d/init.el index c1e6bcc..c05ceed 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -295,7 +295,19 @@ For disabling the behaviour for certain buffers and/or modes." :config (pixel-scroll-mode 1)) ;; ask for GPG passphrase in minibuffer -(setq epg-pinentry-mode 'loopback) +(use-feature epg-config + :defer 0.4 + :custom + ((epg-gpg-program (executable-find "gpg")) + (epg-pinentry-mode 'loopback))) +(use-feature epg + :after epg-config) +(use-package pinentry + :demand + :after (epg server) + :config + (setq pinentry--socket-dir server-socket-dir) + (pinentry-start)) ;; useful libraries (require 'cl-lib) @@ -1213,6 +1225,10 @@ For disabling the behaviour for certain buffers and/or modes." (use-package go-mode) +(use-package po-mode + :hook + (po-mode . (lambda () (run-with-timer 0.1 nil 'View-exit)))) + ;;; Theme @@ -1631,6 +1647,11 @@ For disabling the behaviour for certain buffers and/or modes." ("s-K" . windmove-swap-states-up) ("s-L" . windmove-swap-states-right))) +(use-package pass + :commands pass + :bind ("C-c a p" . pass) + :hook (pass-mode . View-exit)) + ;;; Email (with Gnus) @@ -1858,6 +1879,7 @@ For disabling the behaviour for certain buffers and/or modes." (use-feature gnus-art :config (setq + gnus-buttonized-mime-types '("multipart/\\(signed\\|encrypted\\)") gnus-visible-headers (concat gnus-visible-headers "\\|^List-Id:\\|^X-RT-Originator:\\|^User-Agent:") gnus-sorted-header-list @@ -1961,7 +1983,9 @@ https://shemshak.org/~amin") (use-feature mm-decode :config - (setq mm-discouraged-alternatives '("text/html" "text/richtext"))) + (setq mm-discouraged-alternatives '("text/html" "text/richtext") + mm-decrypt-option 'known + mm-verify-option 'known)) (use-feature sendmail :config