diff --git a/README.org b/README.org index 1cbca11..2107b6b 100644 --- a/README.org +++ b/README.org @@ -507,7 +507,11 @@ Full *IDE* experience for Rust within Emacs. https://github.com/brotzeit/rustic + Install via ~lsp-install-server~ - + +#+begin_src shell :tangle no +rustup default nightly +#+end_src + #+begin_src emacs-lisp (use-package rustic) #+end_src @@ -639,41 +643,51 @@ Configure the default capture template for daily entries. ** Mail #+begin_src emacs-lisp -;; (use-package mu4e -;; :ensure nil -;; :config -;; (setq mu4e-change-filenames-when-moving t -;; mu4e-update-interval (* 5 60) ;; Every 5 minutes. -;; mu4e-get-mail-command "mbsync -a" -;; mu4e-maildir "~/.cache/mail") - -;; ;; Ensure plain text scales for all devices. -;; (setq mu4e-compose-format-flowed t) - -;; ;; GPG signing key for outbound mail. -;; (setq mml-secure-openpgp-signers '("37AB1CB72B741E478CA026D43025DCBD46F81C0F")) -;; (add-hook 'message-send-hook 'mml-secure-message-sign-pgpmime) - -;; ;; Use SMTP to send messages. -;; (setq message-send-mail-function 'smtpmail-send-it) - -;; ;; Configure mail account(s). -;; (setq mu4e-contexts -;; (list -;; ;; Main -;; ;; chris@chrishayward.xyz -;; (make-mu4e-context -;; :name "Main" -;; :match-func -;; (lambda (msg) -;; (when msg -;; (string-prefix-p "/Main" (mu4e-message-field msg :maildir)))) -;; :vars -;; '((user-full-name . "Christopher James Hayward") -;; (user-mail-address . "chris@chrishayward.xyz") -;; (smtpmail-smtp-server . "mail.chrishayward.xyz") -;; (smtpmail-smtp-service . 587) -;; (smtpmail-stream-type . startls)))))) +(add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e") +#+end_src + +#+begin_src emacs-lisp +(use-package mu4e + :config + (setq mu4e-change-filenames-when-moving t + mu4e-update-interval (* 5 60) ;; Every 5 minutes. + mu4e-get-mail-command "mbsync -a" + mu4e-maildir "~/.cache/mail" + mu4e-compose-signature + (concat "Chris Hayward\n" + "https://chrishayward.xyz\n")) + + ;; Ensure plain text scales for all devices. + (setq mu4e-compose-format-flowed t) + + ;; GPG signing key for outbound mail. + (setq mml-secure-openpgp-signers '("37AB1CB72B741E478CA026D43025DCBD46F81C0F")) + (add-hook 'message-send-hook 'mml-secure-message-sign-pgpmime) + + (setq message-send-mail-function 'smtpmail-send-it) + + ;; Configure mail account(s). + (setq mu4e-contexts + (list + ;; Main + ;; chris@chrishayward.xyz + (make-mu4e-context + :name "Main" + :match-func + (lambda (msg) + (when msg + (string-prefix-p "/Main" (mu4e-message-field msg :maildir)))) + :vars + '((user-full-name . "Christopher James Hayward") + (user-mail-address . "chris@chrishayward.xyz") + (smtpmail-smtp-server . "mail.chrishayward.xyz") + (smtpmail-smtp-service . 587) + (smtpmail-stream-type . starttls)))))) +#+end_src + +#+begin_src emacs-lisp +(dotfiles/leader + "m" '(mu4e :which-key "Mail")) #+end_src ** Agenda @@ -700,7 +714,7 @@ https://github.com/kaushalmodi/ox-hugo + Configure for =one-post-per-file= #+begin_src emacs-lisp -(use-package ox-hugo +(use-package ox-hugo :after ox) #+end_src diff --git a/init.el b/init.el index 58dd02e..102a5cb 100644 --- a/init.el +++ b/init.el @@ -249,41 +249,47 @@ :file-name "daily/%<%Y-%m-%d>" :head "#+TITLE: %<%Y-%m-%d>\n"))) -;; (use-package mu4e -;; :ensure nil -;; :config -;; (setq mu4e-change-filenames-when-moving t -;; mu4e-update-interval (* 5 60) ;; Every 5 minutes. -;; mu4e-get-mail-command "mbsync -a" -;; mu4e-maildir "~/.cache/mail") - -;; ;; Ensure plain text scales for all devices. -;; (setq mu4e-compose-format-flowed t) - -;; ;; GPG signing key for outbound mail. -;; (setq mml-secure-openpgp-signers '("37AB1CB72B741E478CA026D43025DCBD46F81C0F")) -;; (add-hook 'message-send-hook 'mml-secure-message-sign-pgpmime) - -;; ;; Use SMTP to send messages. -;; (setq message-send-mail-function 'smtpmail-send-it) - -;; ;; Configure mail account(s). -;; (setq mu4e-contexts -;; (list -;; ;; Main -;; ;; chris@chrishayward.xyz -;; (make-mu4e-context -;; :name "Main" -;; :match-func -;; (lambda (msg) -;; (when msg -;; (string-prefix-p "/Main" (mu4e-message-field msg :maildir)))) -;; :vars -;; '((user-full-name . "Christopher James Hayward") -;; (user-mail-address . "chris@chrishayward.xyz") -;; (smtpmail-smtp-server . "mail.chrishayward.xyz") -;; (smtpmail-smtp-service . 587) -;; (smtpmail-stream-type . startls)))))) +(add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e") + +(use-package mu4e + :config + (setq mu4e-change-filenames-when-moving t + mu4e-update-interval (* 5 60) ;; Every 5 minutes. + mu4e-get-mail-command "mbsync -a" + mu4e-maildir "~/.cache/mail" + mu4e-compose-signature + (concat "Chris Hayward\n" + "https://chrishayward.xyz\n")) + + ;; Ensure plain text scales for all devices. + (setq mu4e-compose-format-flowed t) + + ;; GPG signing key for outbound mail. + (setq mml-secure-openpgp-signers '("37AB1CB72B741E478CA026D43025DCBD46F81C0F")) + (add-hook 'message-send-hook 'mml-secure-message-sign-pgpmime) + + (setq message-send-mail-function 'smtpmail-send-it) + + ;; Configure mail account(s). + (setq mu4e-contexts + (list + ;; Main + ;; chris@chrishayward.xyz + (make-mu4e-context + :name "Main" + :match-func + (lambda (msg) + (when msg + (string-prefix-p "/Main" (mu4e-message-field msg :maildir)))) + :vars + '((user-full-name . "Christopher James Hayward") + (user-mail-address . "chris@chrishayward.xyz") + (smtpmail-smtp-server . "mail.chrishayward.xyz") + (smtpmail-smtp-service . 587) + (smtpmail-stream-type . starttls)))))) + +(dotfiles/leader + "m" '(mu4e :which-key "Mail")) (setq org-agenda-files '("~/.local/source/brain/daily/" "~/.local/source/secrets/org/")) @@ -291,7 +297,7 @@ (dotfiles/leader "a" '(org-agenda :which-key "Agenda")) -(use-package ox-hugo +(use-package ox-hugo :after ox) (add-to-list 'org-roam-capture-templates