diff options
author | Raul Benencia <rul@kalgan.cc> | 2021-08-01 12:00:40 -0700 |
---|---|---|
committer | Raul Benencia <rul@kalgan.cc> | 2021-08-01 12:01:39 -0700 |
commit | 9ca5d1c9d50c2230882705b4689d65a8f59cb4f4 (patch) | |
tree | 039f0ef07b3178055c8ab283fbc608ca8afb6f43 /.emacs.local.d | |
parent | 80617b11fb30d1ff7d381d919d5fab9b3b359100 (diff) |
org-roam to its own file
Diffstat (limited to '.emacs.local.d')
-rw-r--r-- | .emacs.local.d/modes/org-roam.el | 20 | ||||
-rw-r--r-- | .emacs.local.d/modes/org.el | 10 |
2 files changed, 20 insertions, 10 deletions
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) |