Ignore Cleanup & More ORG

This commit is contained in:
2024-06-16 11:24:45 -04:00
parent e8c6ed2665
commit 3ac7b61c9f
3 changed files with 94 additions and 55 deletions

5
.gitignore vendored
View File

@@ -14,3 +14,8 @@ tramp
/result
/transient/
/BROWSE
org-roam.db
bookmarks
.org-id-locations
.lsp-session-v1
.dap-breakpoints

View File

@@ -1,24 +0,0 @@
;;; hoc-mode.el -- mode for editing NEURON hox files
;; (setq hoc-mode-keywords "proc\\|objref\\|create\\|public\\|begintemplate\\|endtemplate\\|access\\|if\\|for")
(setq hoc-mode-highlights
'(
( "proc\\|objref\\|create\\|public\\|begintemplate\\|endtemplate\\|access\\|if\\|for" . font-lock-keyword-face)
( "[a-z0-9A-Z_]+?[ \n\t]*\\((\\)" . font-lock-function-name-face)
( "//.+" . font-lock-comment-face)
( "/\*" . font-lock-comment-start-skip)
( "\*/" . font-lock-comment-end-skip)
)
)
(define-derived-mode hoc-mode
prog-mode "hoc"
"Major mode for NEURON Hoc."
(setq comment-start "//")
(setq font-lock-defaults '(hoc-mode-highlights))
)
(provide 'hoc-mode)
;;; hoc-mode.el ends here

120
main.org
View File

@@ -42,6 +42,9 @@ replacement for defining configs and relations between packages etc.
:bind (("M-=" . transient-dwim-dispatch)))
#+end_src
#+RESULTS:
: transient-dwim
** MacOS Specific
#+begin_src elisp :tangle yes :exports code
@@ -396,13 +399,11 @@ dependent)
We use org-ref because it provides some niceties, like doi-utils for
updating our bibliography.
#+begin_src elisp :tangle no :exports code
(leaf org-ref :ensure t helm-bibtex
#+begin_src elisp :tangle yes :exports code
(leaf org-ref :ensure t helm-bibtex pdf-tools
:after org
:init
(leaf pdf-tools :ensure t)
:bind
(("C-c ]" . org-ref-insert-link))
:bind*
("C-c ]" . org-ref-insert-link)
:config
(setq org-bib-dir (concat document-dir "/Bibliography"))
(setq org-bib-file (concat org-bib-dir "/references.bib"))
@@ -410,7 +411,7 @@ updating our bibliography.
(setq bibtex-completion-library-path `(,(concat org-bib-dir "/bibtex-pdfs/"))
;; Where is the bibliography expected (org-ref & org-cite)
bibtex-completion-bibliography (list org-bib-file)
org-cite-global-bibliography org-bib-file
org-cite-global-bibliography (list org-bib-file)
bibtex-completion-notes-path (concat org-bib-dir "/notes")
bibtex-completion-notes-template-multiple-files "* ${author-or-editor}, ${title}, ${journal}, (${year}) :${=type=}: \n\nSee [[cite:&${=key=}]]\n"
@@ -442,11 +443,10 @@ updating our bibliography.
We really do require latex
#+begin_src elisp :tangle no :exports code
(leaf ox-latex
:after org org-ref
#+begin_src elisp :tangle yes :exports code
(leaf ox-latex :require t
:after org
:config
(add-to-list 'org-export-backends 'latex)
(add-to-list 'org-latex-packages-alist '("" "minted"))
(setq org-latex-listings 'minted)
@@ -473,14 +473,34 @@ We really do require latex
"%latex -shell-escape -interaction nonstopmode -output-directory %o %f")))
#+end_src
*** HTML Export
#+begin_src elisp :tangle yes :exports code
(leaf ox-html
:after org
:config
(setq org-html-head "
<style type=\"text/css\">
pre.src {
background-color: #000;
color: #ccc;
border-radius: 2ch;
}
pre.src:before {
background-color: #ccc;
color: #000;
border-radius: 0.5ch;
}
</style>
"))
#+end_src
*** Pandoc the Panacea of Exports
For more export formats we use pandoc:
#+begin_src elisp :tangle no :exports code
(leaf ox-pandoc :ensure t
:after org org-ref
:config
(add-to-list 'org-export-backends 'pandoc))
#+begin_src elisp :tangle yes :exports code
(leaf ox-pandoc :ensure t :require t
:after org)
#+end_src
*** Slideshows
@@ -491,10 +511,9 @@ Writing mockup presentations can be quicker when you focus on the text
of the presentation first, and prettifying later. Reveal.js is a nice
in between of these.
#+begin_src elisp :tangle no :exports code
(leaf ox-reveal :ensure t
#+begin_src elisp :tangle yes :exports code
(leaf ox-reveal :ensure t :require t
:config
(add-to-list 'org-export-backends 'reveal)
(setq org-reveal-root "https://cdn.jsdelivr.net/npm/reveal.js"))
#+end_src
@@ -521,12 +540,12 @@ And in case we want to make some (GNU)?plots?
*** Agenda Location
Make it so that all files in the " src_elisp{org-agenda-files} " variable (e.g. "=~/Documents=") will be
included in the tablutation and collation of all the dates and todos
etc.
# Make it so that all files in the " src_elisp{org-agenda-files} " variable (e.g. "=~/Documents=") will be
# included in the tablutation and collation of all the dates and todos
# etc.
#+begin_src elisp :tangle yes :exports code
(leaf org-agenda :require t
(leaf org-agenda
:after org
:config
(setq org-agenda-files `(,(concat org-directory))))
@@ -556,24 +575,63 @@ e.g. meetings, deadlines and whatever else:
(leaf org-capture
:after org-capture
:config
(add-hook 'org-capture-mode-hook #'org-id-get-create)
(setq org-capture-templates
'(("t" "Todo" entry (file+headline "todo.org" "Tasks")
"* TODO %?\n %i\n %a")
"* TODO %^{Todo?} %^G\nSCHEDULED: %^t\n:PROPERTIES:\n:ADDED: %U\n:END:\n %i\n %a \n%?\n")
("h" "Habit" entry (file+headline "todo.org" "Habits")
"* TODO %^{Habit} %^G\nSCHEDULED: %^T\n:PROPERTIES:\n:STYLE: habit\n:ADDED: %U\n:END:\n%?\n")
("j" "Journal" entry (file+datetree "journal.org")
"* %?\nEntered on %U\n %i\n %a")
"* %^{Journal Entry:} %^G\nEntered on %U\n %i\n:PROPERTIES:\n:ADDED: %U\n:END:\n %a\n%?\n")
("m" "Meeting" entry (file+headline "dates.org" "Meetings")
"* %^{prompt} :meeting:%^G\n:PROPERTIES:\n:CATEGORY: Meeting\n:LOCATION: %^{LOCATION}\n:ADDED: %U\n:END:\nMeeting is scheduled for: %^t\n%?\n\n"))))
"* %^{Meeting Title:} %^G\nSCHEDULED: %^t\n:PROPERTIES:\n:CATEGORY: Meeting\n:LOCATION: %^{LOCATION}\n:ADDED: %U\n:END:\n%?\n"))))
#+end_src
** Org Mobile
*** Habits
#+begin_src elisp :tangle yes :exports code
(leaf org-mobile
(leaf org-habit
:after org
:require t
:config
(add-to-list 'org-modules 'org-habit t)
(setq org-habit-graph-column 80))
#+end_src
*** Org Mobile
So that we can edit and view things on the go. We could use the proper =org-mobile= module of org,
instead we synchronize w/ Nextcloud, as to have it be the format we like when using =Orgzly Revived=
** Org Notes (Roam)
Let alone being able to maintain dates and times and journal entries: having notes for consolidating
a personal wiki (separately) is also rather useful. For this we use Org-roam, a slip-note style note
taking package.
*** Org Roam
#+begin_src elisp :tangle yes :exports code
(leaf org-roam :ensure t
:after org
:require t
:config
(setq org-roam-directory (file-truename org-directory))
(org-roam-db-autosync-mode))
#+end_src
**** Org Roam Babel (ORB)
** Org Babel
#+begin_src elisp :tangle yes :exports code
(leaf org-babel
:after org
:config
(setq org-mobile-directory "/scpx:webdav@server:/srv/webdav"
org-mobile-inbox-for-pull (concat org-directory "/mobileorg.org")
org-mobile-agendas nil))
(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
(python . t))))
#+end_src
* Flutter