Very big org/org-roam workflow change

Now most of the notes are managed thorugh org-roam, so there was some
serious shift in capture targets, refile across files is no longer
needed.

org-noter: helps to easily write notes while reading a pdf.

org-download: can insert screenshots right from the clipboard!

org-ref: helps to keep loose connection to my zotero library.
This commit is contained in:
Grigory Shipunov 2020-12-06 13:42:33 +01:00
parent cab3bba998
commit 43a9c21e13
No known key found for this signature in database
GPG key ID: 77BB6C3E4771EE7C

52
init.el
View file

@ -199,35 +199,37 @@
;; default agenda files ;; default agenda files
(setq org-agenda-files '("~/nextcloud/org/" (setq org-agenda-files '("~/nextcloud/org/"
"~/nextcloud/org/phone/" "~/nextcloud/org/phone/"
"~/nextcloud/org/roam/"
"~/Seafile/ORG/")) "~/Seafile/ORG/"))
;; default agenda view
(setq org-agenda-start-day "-3d"
org-agenda-span 13)
;; templates ;; templates
(setq org-capture-templates (setq org-capture-templates
'(("t" "TODO" entry '(("t" "TODO" entry
(file+headline "~/nextcloud/org/inbox.org" "tasks-inbox") (file+headline "~/nextcloud/org/random.org" "Tasks")
"** TODO %?\n %i") "** TODO %?\n%i")
("T" "TODO+file" entry ("T" "TODO+file" entry
(file+headline "~/nextcloud/org/inbox.org" "tasks-inbox") (file+headline "~/nextcloud/org/random.org" "Tasks")
"** TODO %?\n %i\n %a") "** TODO %?\n%i\n%a")
("n" "note" entry ("n" "note" entry
(file+headline "~/nextcloud/org/inbox.org" "Notes") (file+headline "~/nextcloud/org/random.org" "Notes")
"** %U\n%?\n") "** %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n\n")
("i" "IFW TODO" entry ("i" "IFW TODO" entry
(file+headline "~/Seafile/ORG/ifw.org" "Tasks") (file+headline "~/Seafile/ORG/ifw-inbox.org" "ifw-tasks")
"** TODO %?\n %i \n%U") "** TODO %?\n%i\n%U")
("j" "Journal" entry ("j" "Journal" entry
(file+datetree "~/nextcloud/org/log.org.gpg") (file+olp+datetree "~/nextcloud/org/log.org.gpg")
"**** %U %?\n") "**** %U %?\n")
("b" "Bookmark" entry ("b" "Bookmark" entry
(file+headline "~/nextcloud/org/inbox.org" "bookmarks-inbox") (file+headline "~/nextcloud/org/bookmarks.org" "bookmarks-inbox")
"** TODO [[%x]]%?\n:PROPERTIES:\n:CREATED: %U\n:END:\n[[%x]]\n"))) "** TODO %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n[[%x]]\n")))
;; autosave advises for agenda and org-capture ;; autosave advises for agenda and org-capture
(advice-add 'org-agenda-quit :before 'org-save-all-org-buffers) (advice-add 'org-agenda-quit :before 'org-save-all-org-buffers)
(advice-add 'org-capture-finalize :after 'org-save-all-org-buffers) (advice-add 'org-capture-finalize :after 'org-save-all-org-buffers)
(advice-add 'org-capture-refile :after 'org-save-all-org-buffers)
;; refile everywhere where agenda lives ;; refile everywhere where agenda lives
(setq org-refile-targets
'((nil :maxlevel . 1)
(org-agenda-files :maxlevel . 1)))
;; babel stuff ;; babel stuff
(org-babel-do-load-languages (org-babel-do-load-languages
'org-babel-load-languages 'org-babel-load-languages
@ -239,16 +241,38 @@
;; latex preview settings ;; latex preview settings
(add-to-list 'org-latex-packages-alist '("" "braket" t)) ; Dirac brakets (add-to-list 'org-latex-packages-alist '("" "braket" t)) ; Dirac brakets
(setq org-preview-latex-image-directory "~/.emacs.d/org-latex-preview/") ; Hide all previews in one place (setq org-preview-latex-image-directory "~/.emacs.d/org-latex-preview/") ; Hide all previews in one place
;; org-id - link by UUID
(require 'org-id)
(setq org-id-method 'uuid
org-id-link-to-org-use-id t)
:config :config
;; abbrev expansion in org-mode ;; abbrev expansion in org-mode
(require 'org-tempo)) (require 'org-tempo))
(use-package org-roam (use-package org-roam
:straight t :straight t
:diminish t
:after org
:hook ('after-init-hook . 'org-roam-mode) :hook ('after-init-hook . 'org-roam-mode)
:init (setq org-roam-directory "~/nextcloud/org/roam" :init (setq org-roam-directory "~/nextcloud/org/roam"
org-roam-db-update-method 'immediate)) org-roam-db-update-method 'immediate))
(use-package org-ref
:straight t
:after org
:init (setq bibtex-completion-bibliography
'("~/Seafile/ORG/complete-library.bib")))
(use-package org-noter
:straight t
:after org)
(use-package org-download
:straight t
:init (setq org-download-method 'directory
org-download-image-dir "./static/org-download"
org-download-heading-lvl nil))
(use-package magit (use-package magit
:straight t :straight t
:bind (("C-x G" . magit-dispatch) :bind (("C-x G" . magit-dispatch)