From 9ca5d1c9d50c2230882705b4689d65a8f59cb4f4 Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Sun, 1 Aug 2021 12:00:40 -0700 Subject: org-roam to its own file --- .emacs | 1 + .emacs.local.d/modes/org-roam.el | 20 ++++++++++++++++++++ .emacs.local.d/modes/org.el | 10 ---------- 3 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 .emacs.local.d/modes/org-roam.el diff --git a/.emacs b/.emacs index 3d71501..39d091c 100644 --- a/.emacs +++ b/.emacs @@ -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) -- cgit v1.2.3