Evie Litherland-Smith
25740f7288
Move base mail path definition Update patterns to exclude duplicate folders and hopefully speed up mbsync a bit Add an "inboxes" group for emacs to use when updating mu4e, pulls all inboxes only Temp disable mbsync systemd job
107 lines
3.9 KiB
EmacsLisp
107 lines
3.9 KiB
EmacsLisp
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
|
|
|
|
;; Place your private configuration here! Remember, you do not need to run 'doom
|
|
;; sync' after modifying this file!
|
|
|
|
;; UTF-8 support
|
|
(prefer-coding-system 'utf-8)
|
|
(set-default-coding-systems 'utf-8)
|
|
(set-terminal-coding-system 'utf-8)
|
|
(set-keyboard-coding-system 'utf-8)
|
|
(setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING))
|
|
|
|
(setq user-full-name "Evie Litherland-Smith"
|
|
user-mail-address "e.litherlandsmith@proton.me"
|
|
doom-font (font-spec :family "FiraCode Nerd Font" :size 16 :weight 'regular)
|
|
doom-theme 'catppuccin
|
|
catppuccin-flavor 'macchiato
|
|
display-line-numbers-type 'relative
|
|
org-directory "~/Notes/"
|
|
+latex-viewers '(pdf-tools)
|
|
+format-with-lsp nil)
|
|
(+global-word-wrap-mode +1)
|
|
(load-theme 'catppuccin t t)
|
|
(catppuccin-reload)
|
|
|
|
;; elfeed RSS sources
|
|
(after! elfeed
|
|
(setq elfeed-feeds
|
|
'("https://systemcrafters.net/rss/news.xml"
|
|
"https://www.zotero.org/blog/feed/"))
|
|
(add-hook! 'elfeed-search-mode-hook #'elfeed-update))
|
|
|
|
;; projectile auto-discover projects
|
|
(after! projectile
|
|
(setq projectile-auto-discover t)
|
|
(setq projectile-project-search-path '("~/Projects/")))
|
|
|
|
(after! (magit magit-delta)
|
|
(add-hook 'magit-mode-hook (lambda () (magit-delta-mode +1))))
|
|
|
|
;; mail settings
|
|
(after! mu4e
|
|
(setq mu4e-get-mail-command "mbsync --pull-renew inboxes"
|
|
mu4e-update-interval 300
|
|
mu4e-sent-messages-behavior 'delete
|
|
mu4e-attachment-dir "~/Downloads"
|
|
mu4e-change-filenames-when-moving t
|
|
sendmail-program (executable-find "msmtp")
|
|
send-mail-function #'smtpmail-send-it
|
|
message-sendmail-f-is-evil t
|
|
message-sendmail-extra-arguments '("--read-envelope-from")
|
|
message-send-mail-function #'message-send-mail-with-sendmail)
|
|
|
|
;; Add accounts with contexts
|
|
(set-email-account! "proton.me"
|
|
'((user-mail-address . "e.litherlandsmith@proton.me")
|
|
(mu4e-sent-folder . "/Proton/Sent")
|
|
(mu4e-drafts-folder . "/Proton/Drafts")
|
|
(mu4e-trash-folder . "/Proton/Trash")
|
|
(mu4e-refile-folder . "/Proton/Archive"))
|
|
t)
|
|
(set-email-account! "icloud.com"
|
|
'((user-mail-address . "e.litherlandsmith@icloud.com")
|
|
(mu4e-sent-folder . "/iCloud/Sent")
|
|
(mu4e-drafts-folder . "/iCloud/Drafts")
|
|
(mu4e-trash-folder . "/iCloud/Trash")
|
|
(mu4e-refile-folder . "/iCloud/Archive"))
|
|
nil)
|
|
(set-email-account! "ukaea.uk"
|
|
'((user-mail-address . "evie.litherland-smith@ukaea.uk")
|
|
(mu4e-sent-folder . "/UKAEA/Sent")
|
|
(mu4e-drafts-folder . "/UKAEA/Drafts")
|
|
(mu4e-trash-folder . "/UKAEA/Trash")
|
|
(mu4e-refile-folder . "/UKAEA/Archive"))
|
|
nil)
|
|
)
|
|
|
|
;; Calendar settings
|
|
(defun open-calendar-all ()
|
|
(interactive)
|
|
(cfw:open-calendar-buffer
|
|
:contents-sources
|
|
(list
|
|
(cfw:org-create-source "Green") ; org-agenda source
|
|
(cfw:ical-create-source "Personal" "~/.calendar/nextcloud/personal.ics" "Red")
|
|
(cfw:ical-create-source "Birthdays" "~/.calendar/nextcloud/contact_birthdays.ics" "Grey")
|
|
;; (cfw:ical-create-source "UKAEA" "~/.calendar/ukaea/calendar.ics" "Blue")
|
|
)))
|
|
|
|
;; Org-mode settings
|
|
(after! org
|
|
(setq org-agenda-files
|
|
'("~/Notes/"
|
|
"~/Notes/roam/"
|
|
"~/Notes/roam/daily/"))
|
|
(setq org-agenda-prefix-format
|
|
'((agenda . " %i %-12:c%-12t")
|
|
(todo . " %i %-24:c")
|
|
(tags . " %i %-24:c")
|
|
(search . " %i %-24:c"))))
|
|
|
|
;; Set org-roam capture templates
|
|
(after! org-roam
|
|
(setq org-roam-capture-templates
|
|
'(("d" "default" plain "%?"
|
|
:target (file+head "${slug}.org" "#+title: ${title}\n")))))
|