Bug fixes and email settings

This commit is contained in:
Ian Keane 2023-12-05 16:42:08 -05:00
parent 607ded5d0b
commit 39c722cfaf

View file

@ -83,6 +83,7 @@ I don't use straight for much currently, but needed it in order to install beanc
(use-package pass) (use-package pass)
(use-package password-store) (use-package password-store)
(pinentry-start) (pinentry-start)
(auth-source-pass-enable)
#+end_src #+end_src
** Variables ** Variables
Things referenced throughout the config which are specific to me Things referenced throughout the config which are specific to me
@ -318,7 +319,7 @@ Setting this in the :init of evil doesn't work for some reason. It has to be ear
("*scratch*" :align left :select t :size 0.25 :popup t) ("*scratch*" :align left :select t :size 0.25 :popup t)
(treemacs-mode :align left :select t :size 0.40 :popup t) (treemacs-mode :align left :select t :size 0.40 :popup t)
("*Messages*" :align right :select t :size 0.25 :popup t)) ("*Messages*" :align right :select t :size 0.25 :popup t))
'(:select t)) ;; Always select newly created windows default-shackle-rule '(:select t)) ;; Always select newly created windows
#+end_src #+end_src
** Popper ** Popper
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -653,9 +654,9 @@ I know these could be bound on a per-package basis, but since this is my primary
;; Reference buffers ;; Reference buffers
"r" '(:ignore t :which-key "reference buffers") "r" '(:ignore t :which-key "reference buffers")
"s" '(scratch-buffer :which-key "Scratch") "rs" '(scratch-buffer :which-key "Scratch")
"m" '(view-echo-area-messages :which-key "Messages") "rm" '(view-echo-area-messages :which-key "Messages")
"c" '(view-lossage :which-key "Commands History") "rc" '(view-lossage :which-key "Commands History")
;; Shell ;; Shell
"s" '(:ignore t :which-key "shell") "s" '(:ignore t :which-key "shell")
@ -693,6 +694,9 @@ I know these could be bound on a per-package basis, but since this is my primary
)) ))
#+end_src #+end_src
#+RESULTS:
: t
* Notes * Notes
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package deft) (use-package deft)
@ -1079,6 +1083,70 @@ Uses the external fish program to provide fish-style completions to eshell etc
#+end_src #+end_src
* Email, rss, newsgroups
Oh, boy. Here we go.
[[https://www.gnu.org/software/emacs/manual/html_node/auth][This]] will come in handy.
(=TODO=: smtp header)
#+begin_src emacs-lisp
(setq user-mail-address "ian@keane.sh"
user-full-name "Ian Keane")
;; Assuming your passwords are stored in Password Store with names like:
;; "email/fastmail" and "email/gmail"
;; IMAP configuration for Fastmail
(setq gnus-select-method
'(nnimap "Fastmail-emacs"
(nnimap-user "ian@keane.sh")
(nnimap-address "imap.fastmail.com")
(nnimap-server-port 993)
(nnimap-stream ssl)))
;; Additional secondary IMAP account for Gmail
;; (add-to-list 'gnus-secondary-select-methods
;; '(nnimap "Gmail"
;; (nnimap-address "imap.gmail.com")
;; (nnimap-server-port 993)
;; (nnimap-stream ssl)
;; (nnimap-authinfo-file nil) ; Not using .authinfo for Gmail
;; (nnir-search-engine imap)
;; (nnimap-authenticator login)
;; (nnimap-login "your-gmail-username") ; Replace with your Gmail username
;; (nnimap-password (password-store-get "email/gmail"))))
(setq send-mail-function 'smtpmail-send-it
message-send-mail-function 'smtpmail-send-it
smtpmail-default-smtp-server "smtp.fastmail.com"
smtpmail-smtp-server "smtp.fastmail.com"
smtpmail-smtp-service 587
smtpmail-stream-type 'starttls
smtpmail-smtp-user "ian@keane.sh"
smtpmail-debug-info t)
;; You may also want to add a conditional to choose the SMTP server based on the current 'From' address.
;; RSS Feeds
;; (add-to-list 'gnus-secondary-select-methods '(nnrss ""))
;; Configure RSS feed subscriptions
;; (setq gnus-secondary-sources
;; '((nnrss "http://example.com/rss") ; replace with actual RSS URL
;; ;; Add more RSS feeds here
;; ))
;; Use Gnus for composing email
(setq mail-user-agent 'gnus-user-agent)
;; Set up HTML email rendering
(setq mm-text-html-renderer 'shr)
(require 'all-the-icons-gnus)
(all-the-icons-gnus-setup)
#+end_src
* Emacs Meta * Emacs Meta
** Explain-Pause ** Explain-Pause
Scrutinize which processes are gumming up emacs Scrutinize which processes are gumming up emacs