From 69c1e0db14bf9fcef59cfac42fa66863759e1d5b Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 21 Oct 2023 00:37:46 +0100 Subject: (Emacs/config)+function to search config org headings --- Emacs/.config/emacs/config.org | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Emacs/.config/emacs/config.org') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 9f04144..29aca07 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1271,12 +1271,19 @@ Some bindings for org mode. "Searches directory (of buffer) for org headings via counsel-rg" (interactive) (counsel-rg "^\\* " (file-name-directory (buffer-file-name)))) + (defun +org/search-config-headings () + "Searches USER-EMACS-DIRECTORY for org headings via counsel-rg" + (interactive) + (counsel-rg "^\\* " + (cl-subseq user-emacs-directory 0 (- (length user-emacs-directory) 1)))) :general (file-leader "l" #'org-store-link "i" #'org-insert-last-stored-link) (code-leader "D" #'org-babel-detangle) + (search-leader + "c" #'+org/search-config-headings) (search-leader :keymaps 'org-mode-map "I" #'+org/search-headings) -- cgit v1.2.3-13-gbd6f