aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/config.org
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2022-09-13 20:54:29 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2022-09-14 00:45:42 +0100
commit9c48f081ee49b4fa14737ae98f624cb5dd498f51 (patch)
tree29991802d65aa9c1d6c72998399eb90dc43459db /Emacs/.config/emacs/config.org
parent49d877304357b81499b0654a1f90790b0eb19f23 (diff)
downloaddotfiles-9c48f081ee49b4fa14737ae98f624cb5dd498f51.tar.gz
dotfiles-9c48f081ee49b4fa14737ae98f624cb5dd498f51.tar.bz2
dotfiles-9c48f081ee49b4fa14737ae98f624cb5dd498f51.zip
(Emacs)~rg binding "sr"->"sR"
I use counsel-rg usually as it provides instant results. At the point where I'll need a compilation-like buffer of results I'll just use one of the *grep functions, which work regardless of ripgrep being installed (essentially just learn one tool, well, rather than multiple tools, badly.)
Diffstat (limited to 'Emacs/.config/emacs/config.org')
-rw-r--r--Emacs/.config/emacs/config.org13
1 files changed, 3 insertions, 10 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index 807f6bb..161e4cd 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -1296,11 +1296,9 @@ most repositories nowadays.
#+begin_src emacs-lisp
(use-package rg
:after grep
- :commands (rg +rg/search-in-new-frame)
:general
(leader
- "sr" #'rg
- "sR" #'+rg/search-in-new-frame)
+ "sR" #'rg)
(:keymaps 'rg-mode-map
"]]" #'rg-next-file
"[[" #'rg-prev-file
@@ -1312,13 +1310,8 @@ most repositories nowadays.
rg-show-header t
rg-custom-type-aliases nil
rg-default-alias-fallback "all"
- rg-buffer-name "*ripgrep*")
- :config
- (defun +rg/search-in-new-frame ()
- (interactive)
- (let ((frame (make-frame)))
- (select-frame frame)
- (call-interactively #'rg))))
+ rg-buffer-name "*ripgrep*"))
+#+end_src
#+end_src
* Applications
** Dashboard