git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: merlyn@stonehenge.com (Randal L. Schwartz)
To: "Francis Moreau" <francis.moro@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: emacs and git...
Date: Thu, 22 Mar 2007 08:57:18 -0700	[thread overview]
Message-ID: <86lkhpmftt.fsf@blue.stonehenge.com> (raw)
In-Reply-To: <38b2ab8a0703220753s67809e87l76ffc57adb725898@mail.gmail.com> (Francis Moreau's message of "Thu, 22 Mar 2007 15:53:26 +0100")

>>>>> "Francis" == Francis Moreau <francis.moro@gmail.com> writes:

Francis> Hi,
Francis> I guess it's a dumb...

Francis> I know that some of you work within emacs. I tried to use git iniside
Francis> a emacs shell (M-x shell) and had a weid behaviour:

Francis> $ git diff
Francis> WARNING: terminal is not fully functional
Francis> -  (press RETURN)
Francis> diff --git a/.lde/bin/cmd-version b/.lde/bin/cmd-version.[m
Francis> index a6ce3f8..687112d 100755.[m
Francis> --- a/.lde/bin/cmd-version.[m
Francis> +++ b/.lde/bin/cmd-version.[m
Francis> @@ -54,7 +54,7 @@ gdb_version () {.[m
Francis> [snip]

Francis> I'm not using diff color option.

Francis> Can anybody shed some light ?

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.  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. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

  parent reply	other threads:[~2007-03-22 15:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-22 14:53 emacs and git Francis Moreau
2007-03-22 15:50 ` Matthieu Moy
2007-03-22 15:57 ` Randal L. Schwartz [this message]
2007-03-22 17:19   ` Bernt Hansen
2007-03-23  7:26     ` Francis Moreau
2007-03-23  7:29   ` Francis Moreau
2007-03-23  7:30     ` Randal L. Schwartz
2007-03-23  8:32       ` Francis Moreau
2007-03-23  9:07         ` Junio C Hamano
2007-03-23  9:54           ` Francis Moreau
2007-03-23 10:10             ` Junio C Hamano
2007-03-23 17:29               ` Francis Moreau
2007-03-24  9:55                 ` Junio C Hamano
2007-03-24 15:10                   ` Francis Moreau
2007-03-23  9:56           ` Francis Moreau
2007-03-24  9:56             ` Junio C Hamano
2007-03-24 15:12               ` Francis Moreau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86lkhpmftt.fsf@blue.stonehenge.com \
    --to=merlyn@stonehenge.com \
    --cc=francis.moro@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).