2023-09-24 12:17:51 +01:00
|
|
|
;;; $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))
|
|
|
|
|
2023-09-25 17:59:40 +01:00
|
|
|
(setq user-full-name "Evie Litherland-Smith"
|
2023-09-24 12:17:51 +01:00
|
|
|
user-mail-address "e.litherlandsmith@proton.me"
|
|
|
|
doom-font (font-spec :family "FiraCode Nerd Font" :size 16 :weight 'regular)
|
|
|
|
doom-theme 'catppuccin
|
2023-10-10 14:52:37 +01:00
|
|
|
doom-emoji-fallback-font-families '("Noto Color Emoji")
|
2023-09-24 12:17:51 +01:00
|
|
|
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
|
2023-09-29 08:31:39 +01:00
|
|
|
(after! mu4e
|
2023-10-03 16:45:56 +01:00
|
|
|
(setq mu4e-get-mail-command "true"
|
2023-10-11 07:38:48 +01:00
|
|
|
mu4e-update-interval 300
|
2023-10-11 16:38:00 +01:00
|
|
|
mu4e-sent-messages-behavior 'sent
|
2023-09-29 08:31:39 +01:00
|
|
|
mu4e-attachment-dir "~/Downloads"
|
|
|
|
mu4e-change-filenames-when-moving t
|
2023-10-11 07:13:44 +01:00
|
|
|
mu4e-alert-modeline-formatter 'mu4e-alert-default-mode-line-formatter
|
2023-09-29 08:31:39 +01:00
|
|
|
sendmail-program (executable-find "msmtp")
|
|
|
|
send-mail-function #'smtpmail-send-it
|
|
|
|
message-sendmail-f-is-evil t
|
|
|
|
message-sendmail-extra-arguments '("--read-envelope-from")
|
2023-09-29 09:28:11 +01:00
|
|
|
message-send-mail-function #'message-send-mail-with-sendmail
|
|
|
|
mu4e-maildir-shortcuts '((:maildir "/Proton/Inbox/" :key ?p)
|
|
|
|
(:maildir "/iCloud/Inbox/" :key ?i)
|
|
|
|
(:maildir "/UKAEA/Inbox/" :key ?u)))
|
2023-09-29 08:31:39 +01:00
|
|
|
|
2023-10-11 07:38:48 +01:00
|
|
|
(setq mu4e-modeline-all-read '("R:" . " ")
|
|
|
|
mu4e-modeline-all-clear '("C:" . " ")
|
|
|
|
mu4e-modeline-new-items '("N:" . " ")
|
2023-10-11 11:46:50 +01:00
|
|
|
mu4e-modeline-unread-items '("U:" . " ")
|
2023-10-11 14:43:47 +01:00
|
|
|
mu4e-search-full-label '("F" . " ")
|
2023-10-11 11:46:50 +01:00
|
|
|
mu4e-search-hide-label '("H" . " ")
|
|
|
|
mu4e-search-related-label '("R" . " ")
|
|
|
|
mu4e-search-skip-duplicates-label '("D" . " ")
|
|
|
|
mu4e-search-threaded-label'("T" . " "))
|
2023-10-10 16:02:01 +01:00
|
|
|
|
2023-09-29 08:31:39 +01:00
|
|
|
;; Add accounts with contexts
|
2023-10-11 07:38:48 +01:00
|
|
|
(set-email-account! "Proton"
|
2023-09-29 08:31:39 +01:00
|
|
|
'((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)
|
2023-10-11 07:38:48 +01:00
|
|
|
(set-email-account! "iCloud"
|
2023-09-29 08:31:39 +01:00
|
|
|
'((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)
|
2023-10-11 07:38:48 +01:00
|
|
|
(set-email-account! "UKAEA"
|
2023-09-29 08:31:39 +01:00
|
|
|
'((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)
|
|
|
|
)
|
|
|
|
|
2023-09-24 12:17:51 +01:00
|
|
|
;; Calendar settings
|
|
|
|
(defun open-calendar-all ()
|
|
|
|
(interactive)
|
|
|
|
(cfw:open-calendar-buffer
|
|
|
|
:contents-sources
|
|
|
|
(list
|
|
|
|
(cfw:org-create-source "Green") ; org-agenda source
|
2023-09-25 17:59:40 +01:00
|
|
|
(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")
|
2023-09-24 12:17:51 +01:00
|
|
|
)))
|
|
|
|
|
|
|
|
;; Org-mode settings
|
|
|
|
(after! org
|
2023-10-10 11:27:13 +01:00
|
|
|
(setq org-agenda-sticky t)
|
2023-09-24 12:17:51 +01:00
|
|
|
(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")))))
|
2023-10-02 17:04:32 +01:00
|
|
|
|
|
|
|
;; TRAMP host specific configs
|
|
|
|
(after! tramp
|
|
|
|
(setq tramp-default-method "sshx"
|
|
|
|
tramp-default-remote-shell "/bin/bash")
|
|
|
|
(connection-local-set-profile-variables
|
|
|
|
'freia '((tramp-remote-path . ("/home/elitherl/.local/bin"
|
|
|
|
"/usr/local/depot/git-2.26.1/bin"
|
|
|
|
tramp-default-remote-path))))
|
|
|
|
(connection-local-set-profiles '(:application tramp :machine "freia*") 'freia)
|
|
|
|
(connection-local-set-profile-variables
|
|
|
|
'heimdall '((tramp-remote-path . ("/home/elitherl/.local/bin"
|
|
|
|
"/usr/local/depot/git-2.26.1/bin"
|
|
|
|
tramp-default-remote-path))))
|
|
|
|
(connection-local-set-profiles '(:application tramp :machine "heimdall*") 'heimdall))
|