Emacs copy with regex -
I have a text file I can select text based on Emacs regex and put it in the ring So, can I copy it somewhere else? Regex-kill-ring-save?
is already inspired by the comments given (Charles responds' to work I I wanted to add a new function in the ISKR / Isaacach-Reggae mode map, which only puts the matched string in the ring (while Charles's offer from the current point to the end of the match string):
(defun hack-isearch-kill) "Push the current match string into the kill ring." (Interac () (Kill-new (buffer-substring (point isearch-other-end)) (Good thing about ISISc-Rijxp approach [(IBM)) (
IISearch-mode -map (kbd "Mw") which you can enable with cs
and cms
respectively) is that you can see your search string mounting and you can call it < Code> Mw as soon as you are satisfied (and go back to where you went with cube space
).
Th Emacs 23 for Works with .1 Do not know if it will work in all situations. Anyway I hope you find it useful :)
Update: is going through emacswiki, on which I'm stumbling, more or less than Get similar suggestions (and some more suggestions ...). / P>
Cheers, Daniel
Comments
Post a Comment