We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b7bbdd commit 47ee59cCopy full SHA for 47ee59c
.emacs.rc/misc-rc.el
@@ -130,6 +130,14 @@ This command does the inverse of `fill-paragraph'."
130
131
(global-set-key (kbd "C-x p d") 'rc/insert-timestamp)
132
133
+(defun rc/rgrep-selected (beg end)
134
+ (interactive (if (use-region-p)
135
+ (list (region-beginning) (region-end))
136
+ (list (point-min) (point-min))))
137
+ (rgrep (buffer-substring-no-properties beg end) "*" (pwd)))
138
+
139
+(global-set-key (kbd "C-x p s") 'rc/rgrep-selected)
140
141
;;; A little hack which fixes a problem with meta key in fluxbox under VNC.
142
(setq x-alt-keysym 'meta)
143
0 commit comments