diff --git a/doom/.config/doom/README.org b/doom/.config/doom/README.org index 67e9941..90b8b00 100644 --- a/doom/.config/doom/README.org +++ b/doom/.config/doom/README.org @@ -3683,7 +3683,7 @@ Project bookmarks go to .bookmarks file in project root." ;; Bindings (defun gortium/list-project-bookmarks () - "Show project bookmark menu. Switches to .bookmarks, restores globals on quit." + "Show .bookmarks menu. Switches bookmark-default-file, restores ref on quit." (interactive) (if (not (projectile-project-p)) (user-error "Not in a project") @@ -3692,29 +3692,15 @@ Project bookmarks go to .bookmarks file in project root." (saved-file bookmark-default-file)) (if (not (file-exists-p proj-file)) (message "No .bookmarks file in this project.") - ;; Switch to project bookmarks (setq bookmark-default-file proj-file) (bookmark-load proj-file t) (bookmark-bmenu-list) - ;; Restore on quit (with-current-buffer "*Bookmark List*" (add-hook 'kill-buffer-hook (lambda () - (ignore-errors (bookmark-save)) (setq bookmark-default-file saved-file) (setq bookmark-alist saved-alist)) nil t)))))) - -(map! :leader - :desc "Set bookmark (global/project)" - "b m" #'gortium/bookmark-set - :desc "List project bookmarks" - "p RET" #'gortium/list-project-bookmarks) -#+end_src - -** Refile task to Roam dailies - -#+begin_src emacs-lisp (defun gortium/refile-to-today-daily () "Refile the current subtree under the 'Journal' headline in today's daily note. This version uses `org-roam-dailies-capture-today` to ensure the daily note diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index eee376e..19231ef 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -2753,7 +2753,7 @@ Project bookmarks go to .bookmarks file in project root." ;; Bindings (defun gortium/list-project-bookmarks () - "Show project bookmark menu. Switches to .bookmarks, restores globals on quit." + "Show .bookmarks menu. Switches bookmark-default-file, restores ref on quit." (interactive) (if (not (projectile-project-p)) (user-error "Not in a project") @@ -2762,25 +2762,15 @@ Project bookmarks go to .bookmarks file in project root." (saved-file bookmark-default-file)) (if (not (file-exists-p proj-file)) (message "No .bookmarks file in this project.") - ;; Switch to project bookmarks (setq bookmark-default-file proj-file) (bookmark-load proj-file t) (bookmark-bmenu-list) - ;; Restore on quit (with-current-buffer "*Bookmark List*" (add-hook 'kill-buffer-hook (lambda () - (ignore-errors (bookmark-save)) (setq bookmark-default-file saved-file) (setq bookmark-alist saved-alist)) nil t)))))) - -(map! :leader - :desc "Set bookmark (global/project)" - "b m" #'gortium/bookmark-set - :desc "List project bookmarks" - "p RET" #'gortium/list-project-bookmarks) - (defun gortium/refile-to-today-daily () "Refile the current subtree under the 'Journal' headline in today's daily note. This version uses `org-roam-dailies-capture-today` to ensure the daily note