From f5719cc1ec188e34500b70ac006a937bcaa908fc Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Sat, 15 Jun 2024 23:03:52 +0000 Subject: Move org-contacts config after org config so it's set up properly --- emacs/init.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/emacs/init.el b/emacs/init.el index c9f5c7b..f29e206 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -274,11 +274,6 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word." ;; I also want to make the completion at point function a bit more friendly than the default, so i ask consult to provide the completion functionality. (setopt completion-in-region-function 'consult-completion-in-region) -(use-package org-contacts :ensure t :pin gnu) -(setopt org-contacts-files org-agenda-files) -;; Org contacts seems to require birthdays to have a year. However, i don't know the year of a lot of people's birthdays, so i set the year to 0000. This looks bad when the birthday comes up in the agenda. I figured that i don't usually need to know how old someone is going to be, so i change the format of how the birthday appears in the agenda so that i don't get the wrong age. -(setopt org-contacts-birthday-format "Birthday: %l") - ;; select the help window so that i can easily close it again with q (setopt help-window-select t) @@ -350,6 +345,11 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word." (global-set-key (kbd "C-c c") #'org-capture) (global-set-key (kbd "C-c a") #'org-agenda) +(use-package org-contacts :ensure t :pin gnu) +(setopt org-contacts-files org-agenda-files) +;; Org contacts seems to require birthdays to have a year. However, i don't know the year of a lot of people's birthdays, so i set the year to 0000. This looks bad when the birthday comes up in the agenda. I figured that i don't usually need to know how old someone is going to be, so i change the format of how the birthday appears in the agenda so that i don't get the wrong age. +(setopt org-contacts-birthday-format "Birthday: %l") + (use-package org-modern :ensure t) (add-hook 'org-mode-hook #'org-modern-mode) ;; (add-hook 'org-agenda-finalize-hook #'org-modern-agenda) -- cgit 1.4.1-2-gfad0