configure org mode
This commit is contained in:
34
init.el
34
init.el
@@ -349,26 +349,27 @@
|
|||||||
:defer t)
|
:defer t)
|
||||||
|
|
||||||
(use-package org
|
(use-package org
|
||||||
:mode "\\.org\\'"
|
:ensure nil
|
||||||
|
:mode ("\\.org\\'" . org-mode)
|
||||||
|
:hook (org-mode . org-indent-mode)
|
||||||
:custom
|
:custom
|
||||||
(org-todo-keywords '((sequence "TODO" "INPROGRESS" "DONE")))
|
(org-todo-keywords '((sequence "TODO" "INPROGRESS" "DONE")))
|
||||||
(org-support-shift-select t)
|
(org-support-shift-select t)
|
||||||
|
(org-default-notes-file (concat org-directory "/captures.org"))
|
||||||
(org-html-validation-link nil)
|
(org-html-validation-link nil)
|
||||||
(org-html-head-include-default-style nil)
|
(org-html-head-include-default-style nil)
|
||||||
(org-html-head-include-scripts nil)
|
(org-html-head-include-scripts nil)
|
||||||
(org-html-head "<link rel=\"stylesheet\" href=\"https://cdn.simplecss.org/simple.min.css\" />")
|
(org-html-head "<link rel=\"stylesheet\" href=\"https://cdn.simplecss.org/simple.min.css\" />")
|
||||||
|
(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")))
|
||||||
|
|
||||||
:config
|
(org-publish-use-timestamps-flag nil)
|
||||||
(org-indent-mode)
|
(org-publish-project-alist
|
||||||
(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
|
||||||
(list "writings"
|
(list "writings"
|
||||||
:base-directory "~/Documents/writings/content"
|
:base-directory "~/Documents/writings/content"
|
||||||
@@ -378,7 +379,14 @@
|
|||||||
:time-stamp-file nil
|
:time-stamp-file nil
|
||||||
:section-numbers nil
|
:section-numbers nil
|
||||||
:with-creator t
|
:with-creator t
|
||||||
:with-author nil))))
|
:with-author nil)))
|
||||||
|
|
||||||
|
:config
|
||||||
|
(require 'ox-publish)
|
||||||
|
|
||||||
|
(org-babel-do-load-languages
|
||||||
|
'org-babel-load-languages
|
||||||
|
'((shell . t))))
|
||||||
|
|
||||||
(use-package dumber-jump
|
(use-package dumber-jump
|
||||||
:init
|
:init
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ http_headers = {
|
|||||||
|
|
||||||
(defun codex--send (prompt)
|
(defun codex--send (prompt)
|
||||||
"Sends a prompt to codex."
|
"Sends a prompt to codex."
|
||||||
(let* ((buf (generate-new-buffer "*codex--send*"))
|
(let* ((buf (generate-new-buffer " *codex--send*"))
|
||||||
(proc (make-process
|
(proc (make-process
|
||||||
:name "codex"
|
:name "codex"
|
||||||
:buffer buf
|
:buffer buf
|
||||||
|
|||||||
Reference in New Issue
Block a user