diff options
Diffstat (limited to 'Emacs')
-rw-r--r-- | Emacs/.config/emacs/config.org | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index f22e5a4..326791f 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1069,8 +1069,11 @@ most repositories nowadays. *** rg #+begin_src emacs-lisp (use-package rg + :commands (+rg/search-in-new-frame) :general - (leader "sr" #'rg) + (leader + "sr" #'rg + "sR" #'+rg/search-in-new-frame) (:keymaps 'rg-mode-map "]]" #'rg-next-file "[[" #'rg-prev-file @@ -1082,7 +1085,13 @@ most repositories nowadays. rg-show-header t rg-custom-type-aliases nil rg-default-alias-fallback "all" - rg-buffer-name "*ripgrep*")) + rg-buffer-name "*ripgrep*") + :config + (defun +rg/search-in-new-frame () + (interactive) + (let ((frame (make-frame))) + (select-frame frame) + (call-interactively #'rg)))) #+end_src * Applications ** Dashboard |