diff --git a/init.el b/init.el index 8657da4..226442c 100644 --- a/init.el +++ b/init.el @@ -349,36 +349,44 @@ :defer t) (use-package org - :mode "\\.org\\'" + :ensure nil + :mode ("\\.org\\'" . org-mode) + :hook (org-mode . org-indent-mode) :custom (org-todo-keywords '((sequence "TODO" "INPROGRESS" "DONE"))) (org-support-shift-select t) + (org-default-notes-file (concat org-directory "/captures.org")) (org-html-validation-link nil) (org-html-head-include-default-style nil) (org-html-head-include-scripts nil) (org-html-head "") + (org-capture-templates + '(("t" "Task" entry (file+headline "~/org/inbox.org" "Tasks") + "* TODO %?\n%U\n%i\n%a") + ("n" "Note" entry (file+headline "~/org/inbox.org" "Notes") + "* %?\n%U\n%i\n%a") + ("i" "Idea" entry (file+headline "~/org/inbox.org" "Ideas") + "* %?\n%U\n%i\n%a"))) + + (org-publish-use-timestamps-flag nil) + (org-publish-project-alist + (list + (list "writings" + :base-directory "~/Documents/writings/content" + :publishing-directory "~/Documents/writings/public" + :exclude "~/Documents/writings/notes" + :recursive t + :time-stamp-file nil + :section-numbers nil + :with-creator t + :with-author nil))) :config - (org-indent-mode) (require 'ox-publish) (org-babel-do-load-languages 'org-babel-load-languages - '((shell . t))) - - (setq org-publish-use-timestamps-flag nil) - - (setq org-publish-project-alist - (list - (list "writings" - :base-directory "~/Documents/writings/content" - :publishing-directory "~/Documents/writings/public" - :exclude "~/Documents/writings/notes" - :recursive t - :time-stamp-file nil - :section-numbers nil - :with-creator t - :with-author nil)))) + '((shell . t)))) (use-package dumber-jump :init diff --git a/local-lisp/codex.el b/local-lisp/codex.el index dbe0065..af768b9 100644 --- a/local-lisp/codex.el +++ b/local-lisp/codex.el @@ -221,7 +221,7 @@ http_headers = { (defun codex--send (prompt) "Sends a prompt to codex." - (let* ((buf (generate-new-buffer "*codex--send*")) + (let* ((buf (generate-new-buffer " *codex--send*")) (proc (make-process :name "codex" :buffer buf