[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Grep key bindings
From: |
Drew Adams |
Subject: |
RE: Grep key bindings |
Date: |
Thu, 3 Jul 2008 09:59:19 -0700 |
Yes, most users use `grep' and `compile' frequently.
And many users bind them to keys they like.
Does that mean Emacs should pre-bind them?
I personally don't think we need a predefined global binding for `grep' or
`compile'. It's not hard for users to do that on their own, using exactly the
keys they want.
FWIW -
I find that I often reuse the same grep output buffer for a different grep
command - changing either the pattern or the file list (e.g. */*.el vs *.el) or
both.
So I bind `g' in the *grep* buffer to `grep'. That's different from what Emacs
does by default, which is to bind `g' to `recompile', which just repeats the
last compile command exactly.
I also bind `+' to a command that renames the current grep buffer to *grep*<N>
and pops to a new buffer *grep*.