Re: emacs and git...

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

 



On 3/22/07, Randal L. Schwartz <merlyn@xxxxxxxxxxxxxx> wrote:

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^
$

 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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]