Skip to content

Commit

Permalink
(emacs) migrate to org-roam v2
Browse files Browse the repository at this point in the history
  • Loading branch information
d12frosted committed May 10, 2021
1 parent 15660cd commit 87d23cd
Show file tree
Hide file tree
Showing 8 changed files with 198 additions and 214 deletions.
22 changes: 0 additions & 22 deletions bin/vulpea-test

This file was deleted.

1 change: 1 addition & 0 deletions emacs/.dir-locals.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
(elisp-lint-indent-specs . ((vulpea-utils-with-file . 1)
(vulpea-utils-with-note . 1)
(org-roam-with-file . 2)
(org-with-point-at . 1)
(org-element-map . 2)
(file-templates-set . defun)
(leader-def . 0)
Expand Down
10 changes: 10 additions & 0 deletions emacs/lisp/init-elpa.el
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ ORIG-FN is called with ARGS and retried
:around
#'elpa-straight-with-retry)


;; overrides

(straight-override-recipe
'(org-roam
:type git
:host github
:repo "org-roam/org-roam"
:branch "v2"))


;; use-package

Expand Down
3 changes: 2 additions & 1 deletion emacs/lisp/init-vino.el
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
:straight (vino
:type git
:host github
:repo "d12frosted/vino")
:repo "d12frosted/vino"
:branch "feature/org-roam-v2")
:defer t
:general
(leader-def
Expand Down
17 changes: 6 additions & 11 deletions emacs/lisp/init-vulpea.el
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
:straight (vulpea
:type git
:host github
:repo "d12frosted/vulpea")
:repo "d12frosted/vulpea"
:branch "feature/org-roam-v2")
:general
(leader-def
"n" '(nil :which-key "vulpea...")
Expand All @@ -65,8 +66,7 @@
"na" '(vulpea-alias-add :which-key "alias")
"nA" '(vulpea-alias-delete :which-key "unalias"))
:commands (vulpea-setup)
:hook ((after-init . vulpea-setup)
(before-save . vulpea-pre-save-hook))
:hook ((before-save . vulpea-pre-save-hook))
:init
(add-to-list 'window-buffer-change-functions #'vulpea-setup-buffer))

Expand Down Expand Up @@ -143,7 +143,7 @@
(setq
org-tag-persistent-alist '(("FOCUS" . ?f)
("PROJECT" . ?p))
org-tags-exclude-from-inheritance '("PROJECT"))
org-use-tag-inheritance nil)
:config
;; open directory links in `dired'
(add-to-list 'org-file-apps '(directory . emacs))
Expand Down Expand Up @@ -298,11 +298,8 @@


(use-package org-roam
:straight (org-roam
:type git
:host github
:repo "org-roam/org-roam")
:defer t
:commands (org-roam-setup)
:init
(setq
org-roam-directory vulpea-directory
Expand All @@ -323,9 +320,7 @@
org-roam-graph-executable (executable-find "neato")
org-roam-graph-extra-config '(("overlap" . "false")))
:config
;; v2 support
(when (fboundp 'org-roam-setup)
(org-roam-setup)))
(org-roam-setup))



Expand Down
2 changes: 1 addition & 1 deletion emacs/lisp/lib-vulpea-agenda.el
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ Refer to `org-agenda-prefix-format' for more information."
(let* ((file-name (when buffer-file-name
(file-name-sans-extension
(file-name-nondirectory buffer-file-name))))
(title (car-safe (org-roam--extract-titles-title)))
(title (vulpea-buffer-prop-get "title"))
(category (org-get-category))
(result
(or (if (and
Expand Down
77 changes: 0 additions & 77 deletions emacs/lisp/lib-vulpea-buffer-prop.el

This file was deleted.

Loading

0 comments on commit 87d23cd

Please sign in to comment.