aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul Benencia <rul@kalgan.cc>2021-08-01 12:00:40 -0700
committerRaul Benencia <rul@kalgan.cc>2021-08-01 12:01:39 -0700
commit9ca5d1c9d50c2230882705b4689d65a8f59cb4f4 (patch)
tree039f0ef07b3178055c8ab283fbc608ca8afb6f43
parent80617b11fb30d1ff7d381d919d5fab9b3b359100 (diff)
org-roam to its own file
-rw-r--r--.emacs1
-rw-r--r--.emacs.local.d/modes/org-roam.el20
-rw-r--r--.emacs.local.d/modes/org.el10
3 files changed, 21 insertions, 10 deletions
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)
nihil fit ex nihilo