[PLUG] Emacs: save marked lines to new file
Rogan Creswick
creswick at gmail.com
Thu Nov 7 19:55:44 UTC 2013
On Thu, Nov 7, 2013 at 11:27 AM, Dale Snell <ddsnell at frontier.com> wrote:
> 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)
>
kill-ring-save, which is bound to M-w (by default) does the same thing with
one minor change:
"This command is similar to `copy-region-as-kill', except that it gives
visual feedback indicating the extent of the region being copied."
(I'm also not sure where C-x y is defined for Rich -- C-y performs yank for
me.)
--Rogan
>
> 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
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
More information about the PLUG
mailing list