diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-21 00:37:46 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-21 00:37:46 +0100 |
commit | 69c1e0db14bf9fcef59cfac42fa66863759e1d5b (patch) | |
tree | c3a005007f2e91d05717b9ef70e5a7a829f6cb6c /Emacs/.config/emacs | |
parent | 9d327c55bf478bee30b5e34f52ab2d88a616e5d1 (diff) | |
download | dotfiles-69c1e0db14bf9fcef59cfac42fa66863759e1d5b.tar.gz dotfiles-69c1e0db14bf9fcef59cfac42fa66863759e1d5b.tar.bz2 dotfiles-69c1e0db14bf9fcef59cfac42fa66863759e1d5b.zip |
(Emacs/config)+function to search config org headings
Diffstat (limited to 'Emacs/.config/emacs')
-rw-r--r-- | Emacs/.config/emacs/config.org | 7 |
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 |