aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Emacs/.config/emacs/config.org7
1 files changed, 7 insertions, 0 deletions
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,6 +1271,11 @@ 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
@@ -1278,6 +1283,8 @@ Some bindings for org mode.
(code-leader
"D" #'org-babel-detangle)
(search-leader
+ "c" #'+org/search-config-headings)
+ (search-leader
:keymaps 'org-mode-map
"I" #'+org/search-headings)
(nmmap