help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compleet buffer to clipboard


From: Decebal
Subject: Re: Compleet buffer to clipboard
Date: Tue, 21 Apr 2009 00:40:36 -0700 (PDT)
User-agent: G2/1.0

On Apr 21, 8:55 am, Alan Mackenzie <a...@muc.de> wrote:
> >     (global-set-key (kbd "C-c C-a") 'buffer-yank)
> > Then you can use:
> >     C-c C-a
> > to copy the complete buffer to the clipboard.
>
> Sort of, some of the time.  C-c C-a is a binding reserved for major modes
> (see page "Key Binding Conventions" in the elisp manual).  If you're in a
> major mode which actually uses this binding (e.g. C Mode, Diff Mode), it
> will take precedence over your `buffer-yank'.
>
> You might be better using a binding reserved for users, say C-c a.

Good tip, I did not know that. In my case less important, because I
only expect to use it in text-mode or modes derived from this. But it
is always good to know the potential pittfalls.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]