mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-21 01:34:34 +05:30
Fixes org agenda following roam containers
This commit is contained in:
parent
b4a6a2099d
commit
d2fb3e1e5b
|
@ -961,7 +961,9 @@ tasks."
|
||||||
(interactive)
|
(interactive)
|
||||||
(org-agenda-switch-to)
|
(org-agenda-switch-to)
|
||||||
(if (f-exists-p (concat (dir!) "/org-roam.db"))
|
(if (f-exists-p (concat (dir!) "/org-roam.db"))
|
||||||
(org-roam-switch-db (f-filename (f-parent (dir!))) t))
|
(org-roam-switch-db (replace-regexp-in-string (concat "\\/home\\/" user-username "\\/Org\\/") "" (f-parent (dir!))) t))
|
||||||
|
(if (f-exists-p (concat (f-parent (dir!)) "/org-roam.db"))
|
||||||
|
(org-roam-switch-db (replace-regexp-in-string (concat "\\/home\\/" user-username "\\/Org\\/") "" (f-parent (f-parent (dir!)))) t))
|
||||||
(org-roam-olivetti-mode)
|
(org-roam-olivetti-mode)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1117,7 +1117,9 @@ On Wayland, EAF doesn't work.
|
||||||
(interactive)
|
(interactive)
|
||||||
(org-agenda-switch-to)
|
(org-agenda-switch-to)
|
||||||
(if (f-exists-p (concat (dir!) "/org-roam.db"))
|
(if (f-exists-p (concat (dir!) "/org-roam.db"))
|
||||||
(org-roam-switch-db (f-filename (f-parent (dir!))) t))
|
(org-roam-switch-db (replace-regexp-in-string (concat "\\/home\\/" user-username "\\/Org\\/") "" (f-parent (dir!))) t))
|
||||||
|
(if (f-exists-p (concat (f-parent (dir!)) "/org-roam.db"))
|
||||||
|
(org-roam-switch-db (replace-regexp-in-string (concat "\\/home\\/" user-username "\\/Org\\/") "" (f-parent (f-parent (dir!)))) t))
|
||||||
(org-roam-olivetti-mode)
|
(org-roam-olivetti-mode)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1294,6 +1296,7 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)."
|
||||||
"d" 'ibuffer-mark-for-delete
|
"d" 'ibuffer-mark-for-delete
|
||||||
"q" 'kill-buffer
|
"q" 'kill-buffer
|
||||||
(kbd "<return>") 'ibuffer-visit-buffer)
|
(kbd "<return>") 'ibuffer-visit-buffer)
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Dired Configuration
|
** Dired Configuration
|
||||||
#+BEGIN_SRC emacs-lisp :tangle config.el
|
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||||
|
|
Loading…
Reference in a new issue