aboutsummaryrefslogtreecommitdiff
path: root/Emacs
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-04-18 15:41:23 +0630
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-04-18 15:41:23 +0630
commitfe2fd08cfb88eecb221da0e9397e7833402cbe61 (patch)
treebca67c240147e79cebfda37968ae7c836296e885 /Emacs
parent04e8375a21fd4a0395177e178f3a1163a7f6edc1 (diff)
downloaddotfiles-fe2fd08cfb88eecb221da0e9397e7833402cbe61.tar.gz
dotfiles-fe2fd08cfb88eecb221da0e9397e7833402cbe61.tar.bz2
dotfiles-fe2fd08cfb88eecb221da0e9397e7833402cbe61.zip
(Emacs/config)+argument to restrict search-headings to only first level
Diffstat (limited to 'Emacs')
-rw-r--r--Emacs/.config/emacs/config.org4
1 files changed, 3 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index f6c7697..9219e66 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -1237,7 +1237,9 @@ Some bindings for org mode.
"Searches USER-EMACS-DIRECTORY for org headings via counsel-rg"
(interactive)
(counsel-rg "^\\* "
- (cl-subseq user-emacs-directory 0 (- (length user-emacs-directory) 1))))
+ (substring user-emacs-directory 0
+ (- (length user-emacs-directory) 1))
+ "--max-depth=1"))
:general
(file-leader
"l" #'org-store-link