commit 87502256991eff32bc711b342003408805e40c94 parent 788d8e29d84d89b209dfd630cd6e7e22e3680076 Author: Vincent Demeester <vincent@sbr.pm> Date: Tue, 27 Oct 2020 16:55:30 +0100 tools/emacs: remove org-roam Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tools/emacs/config/config-org.el | | | 60 | ------------------------------------------------------------ |
M | users/vincent/dev/emacs.nix | | | 1 | - |
2 files changed, 0 insertions(+), 61 deletions(-)
diff --git a/tools/emacs/config/config-org.el b/tools/emacs/config/config-org.el @@ -424,66 +424,6 @@ Switch projects and subprojects from STARTED back to TODO" (use-package ob-doc-makefile :after org :commands (org-babel-execute:makefile)) -(use-package org-roam - :commands (org-roam org-roam-build-cache) - ;; :hook - ;; (after-init . org-roam-mode) - :bind (("C-c o n" . org-roam-mode) - :map org-roam-mode-map - (("C-c n l" . org-roam) - ("C-c n f" . org-roam-find-file) - ("C-c n g" . org-roam-show-graph) - ("C-c n b" . org-roam-switch-to-buffer)) - :map org-mode-map - (("C-c n i" . org-roam-insert))) - :custom - (org-roam-directory org-notes-dir) - :custom-face - (org-roam-link ((t (:inherit org-link :foreground "#C991E1")))) - :config - (require 'org-roam-protocol) - ;; (defun jethro/conditional-hugo-enable () - ;; (save-excursion - ;; (if (cdr (assoc "SETUPFILE" (org-roam--extract-global-props '("SETUPFILE")))) - ;; (org-hugo-auto-export-mode +1) - ;; (org-hugo-auto-export-mode -1)))) - ;; - ;; (with-eval-after-load 'org - ;; (defun my/org-roam--backlinks-list (file) - ;; (if (org-roam--org-roam-file-p file) - ;; (--reduce-from - ;; (concat acc (format "- [[file:%s][%s]]\n" - ;; (file-relative-name (car it) org-roam-directory) - ;; (org-roam--get-title-or-slug (car it)))) - ;; "" (org-roam-sql [:select [file-from] - ;; :from file-links - ;; :where (= file-to $s1) - ;; :and file-from :not :like $s2] file "%private%")) - ;; "")) - ;; (defun my/org-export-preprocessor (_backend) - ;; (let ((links (my/org-roam--backlinks-list (buffer-file-name)))) - ;; (unless (string= links "") - ;; (save-excursion - ;; (goto-char (point-max)) - ;; (insert (concat "\n* Backlinks\n" links)))))) - ;; (add-hook 'org-export-before-processing-hook 'my/org-export-preprocessor)) - (setq org-roam-capture-ref-templates - '(("r" "ref" plain #'org-roam-capture--get-point "" - :file-name "${slug}" - :head "#+title: ${title}\n#+roam_key: ${ref}\n\n${body}" - :unnarrowed t))) - (setq org-roam-capture-templates - '(("d" "default" plain (function org-roam--capture-get-point) - "%?" - :file-name "${slug}" - :head "#+SETUPFILE:../templates/articles.org -#+TITLE: ${title}\n" - :unnarrowed t) - ("p" "private" plain (function org-roam--capture-get-point) - "%?" - :file-name "${slug}.private" - :head "#+TITLE: ${title}\n" - :unnarrowed t)))) (use-package org :defer 2 :config diff --git a/users/vincent/dev/emacs.nix b/users/vincent/dev/emacs.nix @@ -89,7 +89,6 @@ let org-journal org-plus-contrib org-ql - org-roam org-super-agenda org-tree-slide org-web-tools