summary refs log tree commit diff stats
path: root/config.org
diff options
context:
space:
mode:
authorCase Duckworth2020-11-28 11:27:10 -0600
committerCase Duckworth2020-11-28 11:27:10 -0600
commit0e2856b664100627bb39e5cd18cc7f74f82ed1d2 (patch)
treee591a9b3fb9cea5d4e8d2ed3a743ca2d73120854 /config.org
parentAdd more directories to load-path (diff)
downloademacs-0e2856b664100627bb39e5cd18cc7f74f82ed1d2.tar.gz
emacs-0e2856b664100627bb39e5cd18cc7f74f82ed1d2.zip
Add mu4e
Diffstat (limited to 'config.org')
-rw-r--r--config.org76
1 files changed, 76 insertions, 0 deletions
diff --git a/config.org b/config.org index 6347eaf..a77aaf1 100644 --- a/config.org +++ b/config.org
@@ -1186,6 +1186,82 @@ from [[https://github.com/alphapapa/unpackaged.el#org-return-dwim][unpackaged.el
1186 (0x0-default-service 'ttm)) 1186 (0x0-default-service 'ttm))
1187#+END_SRC 1187#+END_SRC
1188 1188
1189** Mu4e
1190
1191#+begin_src emacs-lisp
1192 (when (executable-find "mu")
1193 (add-to-list 'load-path
1194 "/usr/share/emacs/site-lisp/mu4e")
1195 (require 'mu4e)
1196
1197 (cuss mail-user-agent 'mu4e-user-agent)
1198
1199 (cuss mu4e-headers-skip-duplicates t)
1200 (cuss mu4e-view-show-images t)
1201 (cuss mu4e-view-show-addresses t)
1202 (cuss mu4e-compose-format-flowed t)
1203 (cuss mu4e-change-filenames-when-moving t)
1204 (cuss mu4e-attachments-dir "~/Downloads")
1205
1206 (cuss mu4e-maildir "~/.mail/fastmail")
1207 (cuss mu4e-refile-folder "/Archive")
1208 (cuss mu4e-sent-folder "/Sent")
1209 (cuss mu4e-drafts-folder "/Drafts")
1210 (cuss mu4e-trash-folder "/Trash")
1211
1212 (fset 'my-move-to-trash "mTrash")
1213 (define-key mu4e-headers-mode-map (kbd "d") 'my-move-to-trash)
1214 (define-key mu4e-view-mode-map (kbd "d") 'my-move-to-trash)
1215
1216 (cuss message-send-mail-function 'smtpmail-send-it)
1217 (cuss smtpmail-default-smtp-server "smtp.fastmail.com")
1218 (cuss smtpmail-smtp-server "smtp.fastmail.com")
1219 (cuss smtpmail-stream-type 'ssl)
1220 (cuss smtpmail-smtp-service 465)
1221 (cuss smtpmail-local-domain "acdw.net")
1222 (cuss mu4e-compose-signature
1223 "Best,\nCase\n")
1224
1225 (cuss mu4e-get-mail-command "mbsync -a")
1226 (cuss mu4e-update-interval 300)
1227
1228 (cuss mu4e-completing-read-function 'completing-read)
1229 (cuss message-kill-buffer-on-exit t)
1230 (cuss mu4e-confirm-quit nil)
1231
1232 (cuss mu4e-bookmarks
1233 '((
1234 :name "Unread"
1235 :query
1236 "flag:unread AND NOT flag:trashed AND NOT maildir:/Spam"
1237 :key ?u)
1238 (
1239 :name "Today"
1240 :query "date:today..now and not maildir:/Spam"
1241 :key ?t)
1242 (
1243 :name "This week"
1244 :query "date:7d..now and not maildir:/Spam"
1245 :hide-unread t
1246 :key ?w)))
1247
1248 (cuss mu4e-headers-fields
1249 '((:human-date . 12)
1250 (:flags . 6)
1251 (:mailing-list . 10)
1252 (:from-or-to . 22)
1253 (:subject)))
1254 )
1255
1256 ;; not sure about this...
1257 (use-package mu4e-dashboard
1258 :straight (mu4e-dashboard
1259 :host github
1260 :repo "rougier/mu4e-dashboard"
1261 :branch "main"))
1262
1263#+end_src
1264
1189* Appendix A: ~emacsdc~ script 1265* Appendix A: ~emacsdc~ script
1190 1266
1191Here's a wrapper script that'll start =emacs --daemon= if there isn't one, and then launche =emacsclient= on the arguments. I'd recommend installing with ~ln -s emacsdc ~/.local/bin/~ or something. Then you can set it as your ~$EDITOR~! 1267Here's a wrapper script that'll start =emacs --daemon= if there isn't one, and then launche =emacsclient= on the arguments. I'd recommend installing with ~ln -s emacsdc ~/.local/bin/~ or something. Then you can set it as your ~$EDITOR~!