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,23 +299,35 @@
: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)
:config (org-directory "~/RoamNotes")
(add-to-list 'org-modules 'org-habit t)
(add-to-list 'org-agenda-files "~/RoamNotes/everything.org") ;; capture config
:hook (org-capture-templates
(org-mode . org-indent-mode) ;; Indent text `(("i" "Inbox" entry (file "inbox.org")
;; The following prevents <> from auto-pairing when electric-pair-mode is on. ,(concat "* TODO %?\n"
;; Otherwise, org-tempo is broken when you try to <s TAB... "/Entered on/ %U"))
(org-mode . (lambda () ("@" "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
(add-to-list 'org-modules 'org-habit t)
:hook
(org-mode . org-indent-mode) ;; Indent text
;; The following prevents <> from auto-pairing when electric-pair-mode is on.
;; Otherwise, org-tempo is broken when you try to <s TAB...
(org-mode . (lambda ()
(setq-local electric-pair-inhibit-predicate (setq-local electric-pair-inhibit-predicate
`(lambda (c) `(lambda (c)
(if (char-equal c ?<) t (,electric-pair-inhibit-predicate c)))))) (if (char-equal c ?<) t (,electric-pair-inhibit-predicate c))))))
) )
(use-package toc-org (use-package toc-org
:commands toc-org-enable :commands toc-org-enable
@ -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)