From c8c0e93ad9224f46fa959b9e113625611997cd1a Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 11 Sep 2021 15:39:09 +0100 Subject: Add mac configuration with theme --- doom/config.el | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'doom') diff --git a/doom/config.el b/doom/config.el index 18b6d6c..7f49356 100644 --- a/doom/config.el +++ b/doom/config.el @@ -99,11 +99,20 @@ ;; Mac configuration (when (eq system-type 'darwin) - (setq mac-right-option-modifier 'none - mac-option-key-is-meta nil - mac-command-key-is-meta t - mac-command-modifier 'meta - mac-option-modifier nil)) + (progn (setq mac-right-option-modifier 'none + mac-option-key-is-meta nil + mac-command-key-is-meta t + mac-command-modifier 'meta + mac-option-modifier nil) + + (defun ymhg/apply-theme (appearance) + "Load theme, taking current system APPEARANCE into consideration." + (mapc #'disable-theme custom-enabled-themes) + (pcase appearance + ('light (load-theme 'modus-operandi t)) + ('dark (load-theme 'modus-vivendi t)))) + + (add-hook 'ns-system-appearance-change-functions #'ymhg/apply-theme))) (defun y/insert-date () "Insert a timestamp according to locale's date and time format." -- cgit From a74399898bbc95a4bed593ff9d4adf4fdcca442d Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 17 Sep 2021 11:37:07 +0100 Subject: Remove org-noter --- doom/packages.el | 1 - 1 file changed, 1 deletion(-) (limited to 'doom') diff --git a/doom/packages.el b/doom/packages.el index 8bf72b3..3298904 100644 --- a/doom/packages.el +++ b/doom/packages.el @@ -55,7 +55,6 @@ ;; `org-mode' dependencies (package! org-ref) -(package! org-noter) ;; `org-bullets' replacement (package! org-superstar) (package! ox-reveal) -- cgit From 6e4700617b87ce49cc5d26d757b0a3aad163dd73 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 17 Sep 2021 11:37:20 +0100 Subject: Add DELG --- doom/config.el | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'doom') diff --git a/doom/config.el b/doom/config.el index ddb4e4e..a75e1e2 100644 --- a/doom/config.el +++ b/doom/config.el @@ -314,6 +314,7 @@ "TODO(t)" ; A task that needs doing & is ready to do "PROJ(p)" ; A project, which usually contains other tasks "STRT(s)" ; A task that is in progress + "DELG(d)" ; A task that is in progress "WAIT(w)" ; Something external is holding up this task "HOLD(h)" ; This task is paused/on hold because of me "SMDY(m)" ; todo some day @@ -441,7 +442,6 @@ (setq appt-message-warning-time 15) (run-at-time 10 nil #'appt-activate 1)) - ;; Set up org ref for PDFs (use-package! org-ref :demand @@ -459,14 +459,6 @@ :config (setq org-transclusion-exclude-elements '(property-drawer headline))) -;; Set up org-noter -(use-package! org-noter - :after org - :commands org-noter - :config (setq org-noter-default-notes-file-names '("notes.org") - org-noter-notes-search-path '("~/org/bibliography") - org-noter-separate-notes-from-heading t)) - (use-package! org-superstar :hook (org-mode . org-superstar-mode) :config @@ -769,6 +761,12 @@ (setq message-send-mail-function 'message-send-mail-with-sendmail) +(use-package! sendmail + :config + (if (eq system-type 'darwin) + (setq sendmail-program "/usr/local/bin/msmtp") + (setq sendmail-program "/usr/bin/msmtp"))) + (setq message-signature "Yann Herklotz Imperial College London https://yannherklotz.com") @@ -813,11 +811,11 @@ https://yannherklotz.com") "d" #'ymhg/notmuch-search-delete-mail) (setq notmuch-saved-searches - '((:name "inbox" :query "tag:inbox not tag:deleted" :key "n") - (:name "flagged" :query "tag:flagged" :key "f") - (:name "sent" :query "tag:sent" :key "s") - (:name "drafts" :query "tag:draft" :key "d") - (:name "mailbox" :query "tag:mailbox not tag:deleted" :key "m") + '((:name "inbox" :query "tag:inbox not tag:deleted" :key "n") + (:name "flagged" :query "tag:flagged" :key "f") + (:name "sent" :query "tag:sent" :key "s") + (:name "drafts" :query "tag:draft" :key "d") + (:name "mailbox" :query "tag:mailbox not tag:deleted" :key "m") (:name "imperial" :query "tag:imperial not tag:deleted" :key "i")))) ;;(use-package! ox-ssh -- cgit