[emacs] Update init for emacs
This commit is contained in:
@ -19,9 +19,9 @@ to Doom One most of the time, but I like the Kaolin themes, as well as Nimbus
|
||||
for it's retro charm. Nimbus just doesn't look great when I'm tired though.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq doom-theme 'doom-challenger-deep
|
||||
doom-font (font-spec :family "JetBrains Mono NL" :size 14 :weight 'semi-light)
|
||||
doom-big-font (font-spec :family "JetBrains Mono NL" :size 17)
|
||||
doom-variable-pitch-font (font-spec :family "Overpass" :size 17))
|
||||
doom-font (font-spec :family "JetBrains Mono NL" :size 12 :weight 'semi-light)
|
||||
doom-big-font (font-spec :family "JetBrains Mono NL" :size 16)
|
||||
doom-variable-pitch-font (font-spec :family "Overpass" :size 16))
|
||||
#+END_SRC
|
||||
** Borders
|
||||
Barring the unfortunate end of X11 development and my eventual transition to
|
||||
@ -315,19 +315,26 @@ Reading novels in Emacs, how novel!
|
||||
* Mail
|
||||
** Basics
|
||||
I use notmuch to read and write email from within Emacs.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
;(load! "+mail") ;; Mail stuff
|
||||
|
||||
; Use w3m to parse HTML email
|
||||
Here, we'll plan to use w3m to parse HTML email. You do have to make sure w3m is
|
||||
somehow installed on your machine.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq mm-text-html-renderer 'w3m)
|
||||
(setq w3m-fill-column 88)
|
||||
#+END_SRC
|
||||
|
||||
; Kill email message buffers when you close them
|
||||
A few nice to haves for messages. First we kill email message buffers when they
|
||||
are closed. Then we set our auto save directory and generic message directory.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq message-kill-buffer-on-exit t)
|
||||
(setq message-auto-save-directory "~/Mail/colin@unbl.ink/Drafts/")
|
||||
(setq message-directory "~/Mail/colin@unbl.ink/")
|
||||
#+END_SRC
|
||||
|
||||
;;; Setup sending email with msmtp
|
||||
We'll use `msmtp` to send our email. Again, make sure this is installed.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
;; sendmail-program "/usr/local/bin/msmtpq" <--- this doesn't work as advertised right now
|
||||
(setq send-mail-function 'sendmail-send-it
|
||||
sendmail-program "/usr/local/bin/msmtp"
|
||||
@ -338,6 +345,15 @@ I use notmuch to read and write email from within Emacs.
|
||||
mail-envelope-from 'header)
|
||||
#+END_SRC
|
||||
|
||||
|
||||
Set our custom saved searches so we can conveniently jump to different mail views.
|
||||
#+begin_src emacs-lisp
|
||||
(setq notmuch-saved-searches '((:name "inbox" :query "tag:inbox" :key "i")
|
||||
(:name "unread" :query "tag:inbox and tag:unread" :key "u")
|
||||
(:name "jira" :query "tag:jira and date:yesterday..today" :key "j")
|
||||
(:name "github" :query "tag:github and date:yesterday..today" :key "g")))
|
||||
#+end_src
|
||||
|
||||
We want to make sure notmuch opens in a full window
|
||||
#+begin_src emacs-lisp
|
||||
(after! notmuch
|
||||
|
||||
Reference in New Issue
Block a user