From a6cecb859964f16375c0575e3cae1f9534264956 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Mon, 18 Dec 2023 16:15:45 -0600 Subject: [PATCH] idk --- README.org | 61 ++++++++++++++++++++++++++++++++---------------------- bible.el | 8 +++++-- init.el | 53 ++++++++++++++++++++++++++++------------------- 3 files changed, 74 insertions(+), 48 deletions(-) diff --git a/README.org b/README.org index eeab8ca9..c3531492 100644 --- a/README.org +++ b/README.org @@ -602,7 +602,7 @@ This evil-collection package includes a lot of other evil based things. (defun chris/open-bible () "find a bible to open" (interactive) - (find-file "~/org/bibles/esv.org") + (find-file "~/docs/bibles/esv.org") ) (defun chris/transpose-lines (arg) @@ -894,7 +894,8 @@ Part of this config includes some special capture templates for my work as a you org-log-into-drawer t org-latex-active-timestamp-format "\\textit{%s}" org-enforce-todo-dependencies t - org-export-preserve-breaks t) + org-export-preserve-breaks t + org-directory "~/docs/notes") (add-hook 'org-mode-hook 'chris/org-mode-setup) @@ -960,13 +961,13 @@ Part of this config includes some special capture templates for my work as a you (search . " %i %-12:c"))) (setq org-agenda-category-icon-alist - '(("todo" "~/org/icons/task.png" nil nil :ascent center) - ("lesson" "~/org/icons/book.png" nil nil :ascent center) - ("dev" "~/org/icons/coding.png" nil nil :ascent center) - ("TODO" "~/org/icons/coding.png" nil nil :ascent center))) + '(("todo" "~/docs/icons/task.png" nil nil :ascent center) + ("lesson" "~/docs/icons/book.png" nil nil :ascent center) + ("dev" "~/docs/icons/coding.png" nil nil :ascent center) + ("TODO" "~/docs/icons/coding.png" nil nil :ascent center))) (setq org-imenu-depth 4 - org-odt-styles-file "/home/chris/org/style.odt" + org-odt-styles-file "/home/chris/docs/style.odt" org-export-with-toc nil org-export-with-author nil org-export-with-section-numbers nil @@ -974,12 +975,11 @@ Part of this config includes some special capture templates for my work as a you '((sequence "TODO(t)" "PROJ(p)" "STRT(s)" "WAIT(w)" "HOLD(h)" "|" "DONE(d)" "CNCL(c)") (sequence "[ ](T)" "[-](S)" "[?](W)" "|" "[X](D)")) org-agenda-files - '("~/org/todo/todo.org" - "~/org/nvtfc_social_media.org" + '("~/docs/notes/todo/todo.org" + "~/docs/notes/nvtfc_social_media.org" "~/dev/lumina/TODO.org" "~/dev/tfcconnection/TODO.org" - "~/org/lessons/" - "~/org/") + "~/docs/lessons/") org-id-method 'ts org-agenda-tags-column -75 org-agenda-dim-blocked-tasks nil @@ -1056,7 +1056,7 @@ Part of this config includes some special capture templates for my work as a you (setq org-publish-project-alist `(("home" - :base-directory "~/org/" + :base-directory "~/docs/notes/" :base-extension "org" :exclude ".*" :include "index.org" @@ -1068,7 +1068,7 @@ Part of this config includes some special capture templates for my work as a you :publishing-directory "~/cochrun.xyz/" :publishing-function org-html-publish-to-html) ("posts" - :base-directory "~/org/" + :base-directory "~/docs/notes/" :base-extension "org" :exclude "bibles\\|.st.*\\|.templates" :recursive t @@ -1080,7 +1080,7 @@ Part of this config includes some special capture templates for my work as a you :publishing-directory "~/cochrun.xyz/content/" :publishing-function org-html-publish-to-html) ("static" - :base-directory "~/org/" + :base-directory "~/docs/notes/" :base-extension "css\\|txt\\|jpg\\|gif\\|png" :exclude "bibles\\|.st.*\\|.templates" :recursive t @@ -1240,7 +1240,7 @@ We also need to setup some capture templates to use some specific setups with my :init (setq org-roam-v2-ack t) :config - (setq org-roam-directory "~/org" + (setq org-roam-directory "~/docs/notes" org-roam-buffer-width 0.25 org-roam-list-files-commands '(fd rg find fdfind) org-roam-file-exclude-regexp '(".stversion/|logseq/|presentations/|.stfolder/|.*~.*|.*sync.*|bibles/") @@ -1384,13 +1384,24 @@ I might try switching to and using denote instead of Org Roam. Denote doesn't us #+begin_src emacs-lisp (use-package denote :config - (setq denote-directory "/home/chris/org" - denote-dired-directories "/home/chris/org" + (require 'denote-org-dblock) + (setq denote-directory "/home/chris/docs/notes" + denote-dired-directories "/home/chris/docs/notes" denote-modules '(project xref ffap) denote-known-keywords '("emacs" "bible" "jesus" "tfc" "lesson" "it" "dev")) + + (setq denote-org-front-matter + "#+TITLE: %1$s +,#+AUTHOR: Chris Cochrun +,#+CREATED: %2$s +,#+filetags: %3$s +,#+identifier: %4$s") :general (chris/leader-keys - "no" 'denote-open-or-create)) + :states 'normal + :keymaps 'override + "nf" 'denote-open-or-create + "nb" 'denote-backlinks)) #+end_src *** Org-Superstar @@ -1962,7 +1973,7 @@ So, how do we use this? Well, let's try like this. (use-package org-re-reveal :ensure nil :config - (setq org-re-reveal-root "file:///home/chris/org/presentations/reveal.js/" + (setq org-re-reveal-root "file:///home/chris/docs/presentations/reveal.js/" ;; org-re-reveal-theme "serif" org-re-reveal-transition "slide" org-re-reveal-mobile-app t @@ -4033,10 +4044,10 @@ I'd like to sync my org-files to caldav and hopefully use more native android ap :config (setq org-caldav-url "https://staff.tfcconnection.org/remote.php/dav/calendars/chris" org-caldav-calendar-id "org" - org-caldav-inbox "/home/chris/org/todo/inbox.org" - org-caldav-files '("/home/chris/org/todo/todo.org" - "/home/chris/org/todo/notes.org" - "/home/chris/org/todo/prayer.org") + org-caldav-inbox "/home/chris/docs/notes/todo/inbox.org" + org-caldav-files '("/home/chris/docs/notes/todo/todo.org" + "/home/chris/docs/notes/todo/notes.org" + "/home/chris/docs/notes/todo/prayer.org") org-icalendar-alarm-time 15 org-icalendar-use-scheduled '(todo-start event-if-todo))) #+END_SRC @@ -4655,7 +4666,7 @@ interfere with the default `bongo-playlist-buffer'." (use-package elfeed-org :after elfeed :config - (setq rmh-elfeed-org-files (list "~/org/elfeed.org")) + (setq rmh-elfeed-org-files (list "~/docs/elfeed.org")) (elfeed-org) (elfeed-update)) #+end_src @@ -4971,7 +4982,7 @@ MyBible is going to be set of functions for creating and using a bible app withi (defun chris/find-verse () (interactive) - (find-file "/home/chris/org/bibles/esv.org") + (find-file "/home/chris/docs/notes/bibles/esv.org") (list (imenu-choose-buffer-index))) #+end_src diff --git a/bible.el b/bible.el index be4bab08..4cbf3872 100644 --- a/bible.el +++ b/bible.el @@ -1,8 +1,12 @@ +(defvar bible-directory "~/docs/bibles") (defvar bible-books '(genesis exodus leviticus numbers dueteronomy joshua judges ruth 1-samuel 2-samuel 1-kings 2-kings 1-chronicles 2-chronicles ezra nehemiah esther job psalms proverbs ecclesiastes song-of-solomon isaiah jeremiah lamentations ezekiel daniel hosea joel amos obadiah jonah micah nahum habakkuk zephaniah haggai zechariah malachi matthew mark luke john acts romans 1-corinthians 2-corinthians galatians ephesians phillipians colossians 1-thessalonians 2-thessalonians 1-timothy 2-timothy titus philemon hebrews james 1-peter 2-peter 1-john 2-john 3-john jude revelation)) (org-list-get-subtree *genesis* idk) +(defvar bible-default "~/docs/bibles/esv.org") + (defun chris/find-verse () (interactive) - (find-file "/home/chris/org/bibles/esv.org") - (list (imenu-choose-buffer-index))) + (find-file "/home/chris/docs/bibles/esv.org") + (let ((location (list (imenu-choose-buffer-index)))) + (imenu-default-goto-function nil (cdr (car location))))) diff --git a/init.el b/init.el index 00bebb40..e89b5add 100644 --- a/init.el +++ b/init.el @@ -304,7 +304,7 @@ (defun chris/open-bible () "find a bible to open" (interactive) - (find-file "~/org/bibles/esv.org") + (find-file "~/docs/bibles/esv.org") ) (defun chris/transpose-lines (arg) @@ -585,7 +585,8 @@ much faster. The hope is to also make this a faster version of imenu." org-log-into-drawer t org-latex-active-timestamp-format "\\textit{%s}" org-enforce-todo-dependencies t - org-export-preserve-breaks t) + org-export-preserve-breaks t + org-directory "~/docs/notes") (add-hook 'org-mode-hook 'chris/org-mode-setup) @@ -651,13 +652,13 @@ much faster. The hope is to also make this a faster version of imenu." (search . " %i %-12:c"))) (setq org-agenda-category-icon-alist - '(("todo" "~/org/icons/task.png" nil nil :ascent center) - ("lesson" "~/org/icons/book.png" nil nil :ascent center) - ("dev" "~/org/icons/coding.png" nil nil :ascent center) - ("TODO" "~/org/icons/coding.png" nil nil :ascent center))) + '(("todo" "~/docs/icons/task.png" nil nil :ascent center) + ("lesson" "~/docs/icons/book.png" nil nil :ascent center) + ("dev" "~/docs/icons/coding.png" nil nil :ascent center) + ("TODO" "~/docs/icons/coding.png" nil nil :ascent center))) (setq org-imenu-depth 4 - org-odt-styles-file "/home/chris/org/style.odt" + org-odt-styles-file "/home/chris/docs/style.odt" org-export-with-toc nil org-export-with-author nil org-export-with-section-numbers nil @@ -665,12 +666,11 @@ much faster. The hope is to also make this a faster version of imenu." '((sequence "TODO(t)" "PROJ(p)" "STRT(s)" "WAIT(w)" "HOLD(h)" "|" "DONE(d)" "CNCL(c)") (sequence "[ ](T)" "[-](S)" "[?](W)" "|" "[X](D)")) org-agenda-files - '("~/org/todo/todo.org" - "~/org/nvtfc_social_media.org" + '("~/docs/notes/todo/todo.org" + "~/docs/notes/nvtfc_social_media.org" "~/dev/lumina/TODO.org" "~/dev/tfcconnection/TODO.org" - "~/org/lessons/" - "~/org/") + "~/docs/lessons/") org-id-method 'ts org-agenda-tags-column -75 org-agenda-dim-blocked-tasks nil @@ -747,7 +747,7 @@ much faster. The hope is to also make this a faster version of imenu." (setq org-publish-project-alist `(("home" - :base-directory "~/org/" + :base-directory "~/docs/notes/" :base-extension "org" :exclude ".*" :include "index.org" @@ -759,7 +759,7 @@ much faster. The hope is to also make this a faster version of imenu." :publishing-directory "~/cochrun.xyz/" :publishing-function org-html-publish-to-html) ("posts" - :base-directory "~/org/" + :base-directory "~/docs/notes/" :base-extension "org" :exclude "bibles\\|.st.*\\|.templates" :recursive t @@ -771,7 +771,7 @@ much faster. The hope is to also make this a faster version of imenu." :publishing-directory "~/cochrun.xyz/content/" :publishing-function org-html-publish-to-html) ("static" - :base-directory "~/org/" + :base-directory "~/docs/notes/" :base-extension "css\\|txt\\|jpg\\|gif\\|png" :exclude "bibles\\|.st.*\\|.templates" :recursive t @@ -904,7 +904,7 @@ much faster. The hope is to also make this a faster version of imenu." :init (setq org-roam-v2-ack t) :config - (setq org-roam-directory "~/org" + (setq org-roam-directory "~/docs/notes" org-roam-buffer-width 0.25 org-roam-list-files-commands '(fd rg find fdfind) org-roam-file-exclude-regexp '(".stversion/|logseq/|presentations/|.stfolder/|.*~.*|.*sync.*|bibles/") @@ -1038,13 +1038,24 @@ much faster. The hope is to also make this a faster version of imenu." (use-package denote :config - (setq denote-directory "/home/chris/org" - denote-dired-directories "/home/chris/org" + (require 'denote-org-dblock) + (setq denote-directory "/home/chris/docs/notes" + denote-dired-directories "/home/chris/docs/notes" denote-modules '(project xref ffap) denote-known-keywords '("emacs" "bible" "jesus" "tfc" "lesson" "it" "dev")) + + (setq denote-org-front-matter + "#+TITLE: %1$s +#+AUTHOR: Chris Cochrun +#+CREATED: %2$s +#+filetags: %3$s +#+identifier: %4$s") :general (chris/leader-keys - "no" 'denote-open-or-create)) + :states 'normal + :keymaps 'override + "nf" 'denote-open-or-create + "nb" 'denote-backlinks)) (use-package org-present :commands org-present @@ -1575,7 +1586,7 @@ All my (performant) foldings needs are met between this and `org-show-subtree' (use-package org-re-reveal :ensure nil :config - (setq org-re-reveal-root "file:///home/chris/org/presentations/reveal.js/" + (setq org-re-reveal-root "file:///home/chris/docs/presentations/reveal.js/" ;; org-re-reveal-theme "serif" org-re-reveal-transition "slide" org-re-reveal-mobile-app t @@ -3423,7 +3434,7 @@ interfere with the default `bongo-playlist-buffer'." (use-package elfeed-org :after elfeed :config - (setq rmh-elfeed-org-files (list "~/org/elfeed.org")) + (setq rmh-elfeed-org-files (list "~/docs/elfeed.org")) (elfeed-org) (elfeed-update)) @@ -3656,7 +3667,7 @@ interfere with the default `bongo-playlist-buffer'." (defun chris/find-verse () (interactive) - (find-file "/home/chris/org/bibles/esv.org") + (find-file "/home/chris/docs/notes/bibles/esv.org") (list (imenu-choose-buffer-index))) ;; Reduce rendering/line scan work for Emacs by not rendering cursors or regions