Config: fix my/org-agenda-rifle function

This commit is contained in:
trogloxene
2026-04-08 20:43:45 +08:00
parent 73692fb225
commit 77da003b29
2 changed files with 4 additions and 3 deletions

View File

@@ -144,7 +144,6 @@ Disable jinx-mode if it's enable and global-jinx-mode is disable , otherwise tog
;; 关闭主题
(global-set-key (kbd "C-c u d") 'disable-theme)
(global-set-key (kbd "C-c u f") 'describe-face)
(global-set-key (kbd "C-c u c") 'my-color-picker)
(global-set-key (kbd "C-c u r") 'rainbow-mode)
;; indent-bars
@@ -311,10 +310,10 @@ Disable jinx-mode if it's enable and global-jinx-mode is disable , otherwise tog
(global-set-key (kbd "C-c o s") 'consult-org-agenda)
;; 用ripgrep搜索org-agenda-file
(defun my/org-agenda-rifle (dirs-to-exclude)
(defun my/org-agenda-rifle ()
"Jump to org agenda files use consult-ripgrep."
(interactive)
(consult-ripgrep org-agenda-files)
(consult-ripgrep org-agenda-files))
(global-set-key (kbd "C-c o g") 'my/org-agenda-rifle)