Re: emacs and git...
- From
- Francis Moreau <francis.moro@gmail.com>
- Date
- Mar 23, 2007, 07:29 UTC
- Message-ID
- <38b2ab8a0703230029h7f3faa95u1e2ccb6a9ee4be5e@mail.gmail.com>
- In-Reply-To
- <86lkhpmftt.fsf@blue.stonehenge.com>
On 3/22/07, Randal L. Schwartz <merlyn@stonehenge.com> wrote:
Show 10 quoted lines
> > I use M-x shell on a regular basis, and have learned to add the following > three items to my .emacs wherever I'm at: > > (setenv "PAGER" "/bin/cat") > (setenv "EDITOR" "/opt/emacs/bin/emacsclient") ; `which emacsclient` > (server-start) > > Unless you do the first line, programs that like to push things through "less" > or "more" do some pretty nasty things.
the funny thing is that the following command in emacs' shell actually do nothing.
$ PAGE=cat git diff HEAD^ $
Show 5 quoted lines
> And those last two are nice, because > you can use "git-commit" directly in the shell window, and it'll pop up an > emacs buffer. Read up on emacs-server mode or you won't know how to get out > of it though. :) >
yep I already do that.
-- Francis