[PLUG] Emacs: save marked lines to new file
Dale Snell
ddsnell at frontier.com
Thu Nov 7 19:27:26 UTC 2013
On Thu, 7 Nov 2013 10:45:50 -0800 (PST)
Rich Shepard <rshepard at appl-ecosys.com> wrote:
>
> Just as easy to mark a region (keyboard or pointy device), then press
> ctrl-x w to cut and ctrl-x y to yank it back.
>
That procedure works fine, except that it marks the buffer as
modified. That can be fixed with M-~ . So, being terminally lazy, I
created a macro in my .init.el:
(global-set-key (kbd "C-x w") 'copy-region-as-kill)
I do quite a bit of copy/paste, and this command makes things more
convenient.
--Dale
--
"Have you any idea how successful censorship is on TV? Don't
know the answer? Hmm. Successful, isn't it?" -- Max Headroom
More information about the PLUG
mailing list