This commit is contained in:
Michael Thomson 2025-04-21 21:15:38 -04:00
parent ff9f1d545e
commit 9317418e88
Signed by: mthomson
GPG Key ID: B6CA05EE5F436C79
2 changed files with 34 additions and 20 deletions

View File

@ -13,7 +13,7 @@
typescript-language-server typescript-language-server
typescript typescript
nodejs nodejs
mathpix-snipping-tool # mathpix-snipping-tool
]; ];
programs.emacs = { programs.emacs = {

View File

@ -123,6 +123,7 @@
(start/leader-keys (start/leader-keys
"o" '(:ignore t :wk "Org") "o" '(:ignore t :wk "Org")
"o c" '(org-capture :wk "Capture note")
"o e" '(find-file "~/RoamNotes/everything.org" :wk "Open notes"))) "o e" '(find-file "~/RoamNotes/everything.org" :wk "Open notes")))
(use-package emacs (use-package emacs
@ -298,14 +299,26 @@
:ensure nil :ensure nil
:custom :custom
(org-edit-src-content-indentation 4) ;; Set src block automatic indent to 4 instead of 2. (org-edit-src-content-indentation 4) ;; Set src block automatic indent to 4 instead of 2.
(org-todo-keywords '((sequence "TODO(t!)" "IN-PROGRESS(p)" "CODE-REVIEW(r)" "BLOCKED(b)" "|" "DONE(d!)" "CANCELED(c!)"))) (org-todo-keywords '((sequence "TODO(t!)" "IN-PROGRESS(p!)" "CODE-REVIEW(r@/!)" "BLOCKED(b@/!)" "|" "DONE(d!)" "CANCELED(c@/!)")))
(org-todo-keyword-faces (org-todo-keyword-faces
'(("IN-PROGRESS" . "yellow") ("BLOCKED" . "magenta") ("CODE-REVIEW" . "blue") ("CANCELED" . "grey") ("DONE" . "green"))) '(("IN-PROGRESS" . "yellow") ("BLOCKED" . "magenta") ("CODE-REVIEW" . "blue") ("CANCELED" . "grey") ("DONE" . "green")))
(org-treat-insert-todo-heading-as-state-change t) (org-treat-insert-todo-heading-as-state-change t)
(org-log-into-drawer t) (org-log-into-drawer t)
(org-directory "~/RoamNotes")
;; capture config
(org-capture-templates
`(("i" "Inbox" entry (file "inbox.org")
,(concat "* TODO %?\n"
"/Entered on/ %U"))
("@" "Inbox [mu4e]" entry (file "inbox.org")
,(concat "* TODO Process \"%a\" %?\n"
"/Entered on/ %U"))))
;; agenda config
(org-agenda-files (list "everything.org" "inbox.org" "agenda.org" "notes.org"))
:config :config
(add-to-list 'org-modules 'org-habit t) (add-to-list 'org-modules 'org-habit t)
(add-to-list 'org-agenda-files "~/RoamNotes/everything.org")
:hook :hook
(org-mode . org-indent-mode) ;; Indent text (org-mode . org-indent-mode) ;; Indent text
;; The following prevents <> from auto-pairing when electric-pair-mode is on. ;; The following prevents <> from auto-pairing when electric-pair-mode is on.
@ -356,6 +369,7 @@
(setq mu4e-get-mail-command (concat (executable-find "mbsync") " -a")) (setq mu4e-get-mail-command (concat (executable-find "mbsync") " -a"))
(setq mu4e--get-mail-password-regexp "^Master Password: $") (setq mu4e--get-mail-password-regexp "^Master Password: $")
(setq mu4e-update-interval 300) (setq mu4e-update-interval 300)
(setq mu4e-change-filenames-when-moving t)
;; msmtp ;; msmtp
(setq send-mail-function 'sendmail-send-it) (setq send-mail-function 'sendmail-send-it)