setup gnome polkit, emacs authentication with pass, emacs smtp auth
This commit is contained in:
parent
ce2de54f7d
commit
503c312f35
@ -32,9 +32,18 @@ Select all items listen here – ⌘ + a
|
|||||||
Export the items with ⇧ + ⌘ + e to the file ~/.mail/certificates/root-certificates.pem
|
Export the items with ⇧ + ⌘ + e to the file ~/.mail/certificates/root-certificates.pem
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
* Authentication with Pass
|
||||||
|
|
||||||
|
Pass is a password manager made to be used on the Linux command line. To integrate /pass/ with Emacs, I can install the ~auth-source-pass~ package.
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package auth-source-pass
|
||||||
|
:init (auth-source-pass-enable))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* Mu4e
|
* Mu4e
|
||||||
|
|
||||||
In this section, I'm setting up ~mu4e~ to give emacs the capability to send emails using my gmail account. To start, you need to install the ~mu4e~ package outside of emacs.
|
In this section, I'm setting up ~mu4e~ to give emacs the capability to send emails using my gmail account. To start, you need to install the ~mu4e~ package outside of Emacs.
|
||||||
|
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
yay -S mu
|
yay -S mu
|
||||||
@ -76,10 +85,11 @@ From here, I can continue onto configuring the ~mu4e~ emacs package.
|
|||||||
(setq mu4e-get-mail-command "mbsync -a")
|
(setq mu4e-get-mail-command "mbsync -a")
|
||||||
(setq mu4e-maildir "~/.mail")
|
(setq mu4e-maildir "~/.mail")
|
||||||
|
|
||||||
(setq mu4e-drafts-folder "/[Gmail]/Drafts")
|
;; Config mu4e folders and bookmarks
|
||||||
(setq mu4e-sent-folder "/[Gmail]/Sent Mail")
|
(setq mu4e-drafts-folder "/[Gmail]/Drafts"
|
||||||
(setq mu4e-refile-folder "/[Gmail]/All Mail")
|
mu4e-sent-folder "/[Gmail]/Sent Mail"
|
||||||
(setq mu4e-trash-folder "/[Gmail]/Trash")
|
mu4e-refile-folder "/[Gmail]/All Mail"
|
||||||
|
mu4e-trash-folder "/[Gmail]/Trash")
|
||||||
|
|
||||||
(add-to-list 'mu4e-bookmarks
|
(add-to-list 'mu4e-bookmarks
|
||||||
'(:name "Flagged messages" :query "flag:flagged" :key ?f)
|
'(:name "Flagged messages" :query "flag:flagged" :key ?f)
|
||||||
@ -107,16 +117,16 @@ In order to send mail with ~mu4e~, you must also configure an SMTP client. Base
|
|||||||
(use-package smtpmail
|
(use-package smtpmail
|
||||||
:after mu4e
|
:after mu4e
|
||||||
:config
|
:config
|
||||||
(setq smtpmail-stream-type 'ssl)
|
(setq smtpmail-stream-type 'ssl
|
||||||
(setq smtpmail-smtp-server "smtp.gmail.com")
|
smtpmail-smtp-server "smtp.gmail.com"
|
||||||
(setq smtpmail-smtp-service 465))
|
smtpmail-smtp-service 465))
|
||||||
|
|
||||||
(setq send-mail-function 'smtpmail-send-it)
|
(setq send-mail-function 'smtpmail-send-it)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
When running this however, you need to authenticate by creating an ~~/.authinfo~ file. This file is formatted as follows:
|
When running this however, you need to authenticate by creating an ~~/.authinfo~ file. This file is formatted as follows:
|
||||||
#+begin_src text
|
#+begin_src text
|
||||||
machine smtp.gmail.com port 465 login myuser password mypassword
|
machine smtp.gmail.com port 465 login "<USER>" password "<PASS>"
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Similarly to the password configured above for the IMAP server, you can also pass an ~authinfo.gpg~ file for some added security.
|
Similarly to the password configured above for the IMAP server, you can also pass an ~authinfo.gpg~ file for some added security.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
IMAPAccount gmail
|
IMAPAccount gmail
|
||||||
Host imap.gmail.com
|
Host imap.gmail.com
|
||||||
User jadenprovost@gmail.com
|
User jadenprovost@gmail.com
|
||||||
PassCmd "gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.passwords/gmail.gpg"
|
PassCmd "pass emacs/gmail"
|
||||||
SSLType IMAPS
|
SSLType IMAPS
|
||||||
SSLVersions TLSv1.2
|
SSLVersions TLSv1.2
|
||||||
AuthMechs PLAIN
|
AuthMechs PLAIN
|
||||||
|
1
.xinitrc
1
.xinitrc
@ -30,4 +30,5 @@ fi
|
|||||||
|
|
||||||
feh --bg-scale $HOME/Pictures/wallpaper.jpg &
|
feh --bg-scale $HOME/Pictures/wallpaper.jpg &
|
||||||
$HOME/.screenlayout/launch.sh &
|
$HOME/.screenlayout/launch.sh &
|
||||||
|
/usr/libexec/polkit-gnome-authentication-agent-1 &
|
||||||
exec dbus-launch --exit-with-session i3
|
exec dbus-launch --exit-with-session i3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user