diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-06-27 15:31:32 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-06-27 15:31:32 +0100 |
commit | d394706d49bf65e8c921dff8746f052958586ae9 (patch) | |
tree | 0a70bfd9886d5e3581455cc3af52bce462c55b97 /Emacs | |
parent | 2a7ba982de81f293d4170348852e6592eadc09df (diff) | |
download | dotfiles-d394706d49bf65e8c921dff8746f052958586ae9.tar.gz dotfiles-d394706d49bf65e8c921dff8746f052958586ae9.tar.bz2 dotfiles-d394706d49bf65e8c921dff8746f052958586ae9.zip |
(Emacs/config)~Modified org-heading regexp so it doesn't match bold items
Diffstat (limited to 'Emacs')
-rw-r--r-- | Emacs/.config/emacs/config.org | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 6478c2a..24dcc42 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -2747,19 +2747,21 @@ them. This allows me to search my configuration pretty quickly. :keymaps 'org-mode-map [remap imenu] #'+org/swiper-goto) :config + (defvar +org/heading-regexp "^[\\*]+[ ] ") + (defun +org/swiper-goto () (interactive) - (counsel-grep-or-swiper "^\\* ")) + (counsel-grep-or-swiper +org/heading-regexp)) (defun +org/search-headings () "Searches directory (of buffer) for org headings via counsel-rg" (interactive) - (counsel-rg "^\\* " (file-name-directory (buffer-file-name)))) + (counsel-rg +org/heading-regexp (file-name-directory (buffer-file-name)))) (defun +org/search-config-headings () "Searches config.org for org headings via +org/swiper-goto" (interactive) - (counsel-rg "^\\* " (file-name-directory user-emacs-directory) "--max-depth=1"))) + (counsel-rg +org/heading-regexp (file-name-directory user-emacs-directory) "--max-depth=1"))) #+end_src ** Org Agenda Org agenda provides a nice viewing for schedules. With org mode it's |