version 1.416, 2015/04/10 07:23:14 |
version 1.417, 2015/04/10 16:00:08 |
|
|
.Ic bind-key |
.Ic bind-key |
and |
and |
.Ic unbind-key . |
.Ic unbind-key . |
One command accepts an argument, |
If |
.Ic copy-pipe , |
.Ic append-selection , |
which copies the selection and pipes it to a command. |
.Ic copy-selection , |
|
or |
|
.Ic start-named-buffer |
|
are given the |
|
.Fl x |
|
flag, |
|
.Nm |
|
will not exit copy mode after copying. |
|
.Ic copy-pipe |
|
copies the selection and pipes it to a command. |
For example the following will bind |
For example the following will bind |
|
.Ql C-w |
|
not to exit after copying and |
.Ql C-q |
.Ql C-q |
to copy the selection into |
to copy the selection into |
.Pa /tmp |
.Pa /tmp |
as well as the paste buffer: |
as well as the paste buffer: |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
|
bind-key -temacs-copy C-w copy-selection -x |
bind-key -temacs-copy C-q copy-pipe "cat >/tmp/out" |
bind-key -temacs-copy C-q copy-pipe "cat >/tmp/out" |
.Ed |
.Ed |
.Pp |
.Pp |