commit 57feb3f90b3fd92ed084e7b4fa8e0de0afb906ec parent 051df89472b93acc8944cc4cfc57b2be9ed45bde Author: Alex Balgavy <alex@balgavy.eu> Date: Fri, 20 May 2022 10:53:23 +0200 emacs: add function to force rebuilding org cache Sometimes there's a problem with IDs. See here https://dev.to/devteam/resolving-an-unable-to-resolve-link-error-for-org-mode-in-emacs-2n1f Diffstat:
M | emacs/config.org | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org @@ -1880,6 +1880,18 @@ So I create a keybinding to toggle dedicated on a window: #+end_src +** Rebuild org cache +#+begin_src emacs-lisp +(defun za/force-org-rebuild-cache () + "Rebuild the `org-mode' and `org-roam' cache." + (interactive) + (org-id-update-id-locations) + ;; Note: you may need `org-roam-db-clear-all' + ;; followed by `org-roam-db-sync' + (org-roam-db-sync) + (org-roam-update-org-id-locations)) +#+end_src + * Daemon I want to have a way to kill the Emacs daemon. So, define a function that kills the frame, and with a prefix kills emacs.