|
|
@@ -805,7 +805,7 @@ validate the agenda changes. |
|
|
;; (interactive) |
|
|
;; (interactive) |
|
|
;; (progn |
|
|
;; (progn |
|
|
;; (setq url (read-string "url: ")) |
|
|
;; (setq url (read-string "url: ")) |
|
|
;; (setq reffile (capture-date-file "~/src/org/ref/url")) |
|
|
|
|
|
|
|
|
;; (setq reffile (capture-date-file "~/org/ref/url")) |
|
|
;; (append-to-file |
|
|
;; (append-to-file |
|
|
;; (format "#+TITLE: %s\n#+ROAM_KEY: %s\n\n\n* Content\n%s" |
|
|
;; (format "#+TITLE: %s\n#+ROAM_KEY: %s\n\n\n* Content\n%s" |
|
|
;; (org-web-tools--html-title url) url (mt/insert-url-as-org url)) |
|
|
;; (org-web-tools--html-title url) url (mt/insert-url-as-org url)) |
|
|
@@ -858,10 +858,10 @@ validate the agenda changes. |
|
|
(shell . t) |
|
|
(shell . t) |
|
|
))) |
|
|
))) |
|
|
:custom |
|
|
:custom |
|
|
(org-directory "~/src/org") |
|
|
|
|
|
|
|
|
(org-directory "~/org") |
|
|
;; Don't sort-lines ^^^ |
|
|
;; Don't sort-lines ^^^ |
|
|
(org-agenda-span 'fortnight) |
|
|
(org-agenda-span 'fortnight) |
|
|
(org-archive-directory "~/src/org/attic") |
|
|
|
|
|
|
|
|
(org-archive-directory "~/org/attic") |
|
|
(org-confirm-babel-evaluate nil) |
|
|
(org-confirm-babel-evaluate nil) |
|
|
(org-default-notes-file (concat org-directory "/notes.org")) |
|
|
(org-default-notes-file (concat org-directory "/notes.org")) |
|
|
(org-fontify-done-headline t) |
|
|
(org-fontify-done-headline t) |
|
|
@@ -873,23 +873,23 @@ validate the agenda changes. |
|
|
(org-src-strip-leading-and-trailing-blank-lines t) |
|
|
(org-src-strip-leading-and-trailing-blank-lines t) |
|
|
;; Ref https://orgmode.org/manual/Template-elements.html for more detail. |
|
|
;; Ref https://orgmode.org/manual/Template-elements.html for more detail. |
|
|
(org-agenda-files |
|
|
(org-agenda-files |
|
|
(list "~/src/org" |
|
|
|
|
|
|
|
|
(list "~/org" |
|
|
"~/src/git.mitchty.net/mitchty/dotfiles")) |
|
|
"~/src/git.mitchty.net/mitchty/dotfiles")) |
|
|
;; "#+TITLE: %a\n#+ROAM_KEY: %U\n\n [[%U][%U]]\n" |
|
|
;; "#+TITLE: %a\n#+ROAM_KEY: %U\n\n [[%U][%U]]\n" |
|
|
(org-capture-templates |
|
|
(org-capture-templates |
|
|
'( |
|
|
'( |
|
|
;; TODO: make this crap work somehow |
|
|
;; TODO: make this crap work somehow |
|
|
;; ("w" "website" |
|
|
;; ("w" "website" |
|
|
;; entry (file (capture-date-file "~/src/org/ref/url" "org")) |
|
|
|
|
|
|
|
|
;; entry (file (capture-date-file "~/org/ref/url" "org")) |
|
|
;; ;; "#+TITLE: %a\n#+ROAM_KEY: %U\n\n%? [[%U][%U]]\n" |
|
|
;; ;; "#+TITLE: %a\n#+ROAM_KEY: %U\n\n%? [[%U][%U]]\n" |
|
|
;; "%?" |
|
|
;; "%?" |
|
|
;; :prepend t :empty-lines 1) |
|
|
;; :prepend t :empty-lines 1) |
|
|
;; ("u" "unsorted note" |
|
|
;; ("u" "unsorted note" |
|
|
;; entry (file capture-date-file "~/src/org/unsorted" "org") |
|
|
|
|
|
|
|
|
;; entry (file capture-date-file "~/org/unsorted" "org") |
|
|
;; "\n* %?\nRandom Note entered on %U\n %i\n %a\n" |
|
|
;; "\n* %?\nRandom Note entered on %U\n %i\n %a\n" |
|
|
;; :prepend t :empty-lines 1) |
|
|
;; :prepend t :empty-lines 1) |
|
|
;; ("r" "ref url" |
|
|
;; ("r" "ref url" |
|
|
;; entry (file capture-date-file "~/src/org/ref/url") |
|
|
|
|
|
|
|
|
;; entry (file capture-date-file "~/org/ref/url") |
|
|
;; "\n* %?\nRandom Note entered on %U\n %i\n %a\n" |
|
|
;; "\n* %?\nRandom Note entered on %U\n %i\n %a\n" |
|
|
;; :prepend t :empty-lines 1) |
|
|
;; :prepend t :empty-lines 1) |
|
|
("d" "deadline" |
|
|
("d" "deadline" |
|
|
@@ -931,25 +931,25 @@ Ref: |
|
|
|
|
|
|
|
|
Starting out simple..ish. |
|
|
Starting out simple..ish. |
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp :tangle no |
|
|
(use-package org-roam |
|
|
(use-package org-roam |
|
|
:after org |
|
|
:after org |
|
|
:ensure t |
|
|
:ensure t |
|
|
:hook after-init |
|
|
:hook after-init |
|
|
:custom |
|
|
:custom |
|
|
(org-roam-directory "~/src/org") |
|
|
|
|
|
(org-roam-index-file "~/src/org/roam.org") |
|
|
|
|
|
|
|
|
(org-roam-directory "~/org") |
|
|
|
|
|
(org-roam-index-file "~/org/roam.org") |
|
|
(org-roam-tag-sources '(prop all-directories)) |
|
|
(org-roam-tag-sources '(prop all-directories)) |
|
|
(org-roam-capture-templates |
|
|
(org-roam-capture-templates |
|
|
'(("d" "default" plain (function org-roam--capture-get-point) |
|
|
'(("d" "default" plain (function org-roam--capture-get-point) |
|
|
"%?" |
|
|
"%?" |
|
|
:file-name "~/src/org/${slug}" |
|
|
|
|
|
|
|
|
:file-name "~/org/${slug}" |
|
|
:unnarrowed t |
|
|
:unnarrowed t |
|
|
:head "#+TITLE: ${title}\n"))) |
|
|
:head "#+TITLE: ${title}\n"))) |
|
|
(org-roam-capture-ref-templates |
|
|
(org-roam-capture-ref-templates |
|
|
'(("r" "ref" plain (function org-roam-capture--get-point) |
|
|
'(("r" "ref" plain (function org-roam-capture--get-point) |
|
|
"%?" |
|
|
"%?" |
|
|
:file-name "~/src/org/ref/${slug}") |
|
|
|
|
|
|
|
|
:file-name "~/org/ref/${slug}") |
|
|
:unnarrowed t |
|
|
:unnarrowed t |
|
|
:head "#+TITLE: ${title}\n#+ROAM_KEY: ${ref}\n- source :: ${ref}\n")) |
|
|
:head "#+TITLE: ${title}\n#+ROAM_KEY: ${ref}\n- source :: ${ref}\n")) |
|
|
:bind |
|
|
:bind |
|
|
|