diff options
-rw-r--r-- | .emacs | 1 | ||||
-rw-r--r-- | .emacs.local.d/modes/org-roam.el | 20 | ||||
-rw-r--r-- | .emacs.local.d/modes/org.el | 10 |
3 files changed, 21 insertions, 10 deletions
@@ -19,6 +19,7 @@ (load-file "~/.emacs.local.d/modes/markdown.el") (load-file "~/.emacs.local.d/modes/magit.el") (load-file "~/.emacs.local.d/modes/org.el") +(load-file "~/.emacs.local.d/modes/org-roam.el") (load-file "~/.emacs.local.d/modes/projectile.el") (load-file "~/.emacs.local.d/modes/python.el") (load-file "~/.emacs.local.d/modes/sml.el") diff --git a/.emacs.local.d/modes/org-roam.el b/.emacs.local.d/modes/org-roam.el new file mode 100644 index 0000000..31a20a5 --- /dev/null +++ b/.emacs.local.d/modes/org-roam.el @@ -0,0 +1,20 @@ +(use-package org-roam + :ensure t + :init + (setq org-roam-v2-ack t) + :bind (("C-c n l" . org-roam-buffer-toggle) + ("C-c n f" . org-roam-node-find) + ("C-c n i" . org-roam-node-insert)) + :config + (org-roam-setup) + (add-to-list 'display-buffer-alist + '("\\*org-roam\\*" + (display-buffer-in-direction) + (direction . right) + (window-width . 0.33) + (window-height . fit-window-to-buffer))) + (setq org-roam-mode-section-functions + (list #'org-roam-backlinks-section + #'org-roam-reflinks-section + #'org-roam-unlinked-references-section)) + ) diff --git a/.emacs.local.d/modes/org.el b/.emacs.local.d/modes/org.el index d657201..809e288 100644 --- a/.emacs.local.d/modes/org.el +++ b/.emacs.local.d/modes/org.el @@ -10,16 +10,6 @@ (require 'org) -(use-package org-roam - :ensure t - :init - (setq org-roam-v2-ack t) - :bind (("C-c n l" . org-roam-buffer-toggle) - ("C-c n f" . org-roam-node-find) - ("C-c n i" . org-roam-node-insert)) - :config - (org-roam-setup)) - (setq org-cycle-separator-lines 0) (setq org-startup-indented t) (setq org-hide-leading-stars nil) |