org-roam
2023年8月21日 2023年11月17日
构建个人知识网络
便签
org-roam-安装
1(use-package org-roam 2 :ensure t 3 :custom 4 (org-roam-directory my/org-roam-directory) 5 ;; custom 6 (org-roam-completion-everywhere t) 7 :bind (("C-c n f" . org-roam-node-find) 8 ("C-c n i" . org-roam-node-insert) 9 ("C-c n l" . org-roam-buffer-toggle) 10 ("C-c n s" . org-roam-db-sync) 11 ("C-c n r" . org-roam-db-clear-all) 12 ;; ("C-c n c" . org-roam-capture) 13 ;; Dailies 14 ;; ("C-c n j" . org-roam-dailies-capture-today) 15 ;; ("C-c n g" . org-roam-graph) ;; 需安装Graphviz 16 ;; custom ;; 使能 org-roam-completion-everywhere 17 ;; ("C-M-i" . completion-at-point) 18 ) 19 :config 20 ;; If you're using a vertical completion framework, you might want a more informative completion interface 21 (setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag))) 22 (org-roam-db-autosync-mode) 23 (org-roam-db-sync) 24 ;; If using org-roam-protocol 25 (require 'org-roam-protocol) 26 (setq org-roam-capture-templates '( 27 ("d" "default" plain 28 "%?" 29 :target (file+head "%^{目录}/${title}.org" "#+title: ${title}\n") 30 :unarrowed t) 31 )))
org-roam-快捷键
- | |
---|---|
C-c n f | 查找节点 (查找不到新增) |
C-c n i | 在当前位置插入节点 (查找不到新增) |
C-c n l | 查看所在节点引用 |
C-c n s | 数据库同步 |
C-c n r | 清除数据库 |
C-c C-l | 查看节点链接 |
C-c C-o | 打开节点 |