Config: optimize consult config, change some keybindings and function

This commit is contained in:
User
2026-05-01 20:44:11 +08:00
parent 7e8a801be2
commit 89e7d2954b
6 changed files with 47 additions and 28 deletions

View File

@@ -71,11 +71,15 @@ Disable jinx-mode if it's enable and global-jinx-mode is disable , otherwise tog
(interactive)
(consult-directory-externally default-directory))
(defun org-cycle-current-subtree()
"Cycle current subtree."
(defun org-cycle-parent-subtree()
"Cycle parent org subtree."
(interactive)
(org-back-to-heading)
(org-cycle))
(if (org-at-heading-p)
(progn
(org-up-heading 1)
(org-cycle))
(org-back-to-heading)
(org-cycle)))
(defun consult-org-ripgrep ()
"Search in org files use consult-ripgrep."