git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: emacs and git...

From
FMFrancis 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
Previous: Francis MoreauNext: Randal L. Schwartz
Message 6 of 17 in “emacs and git...”
  1. Francis MoreauMar 22, 2007
  2. Matthieu MoyMar 22, 2007
  3. Randal L. SchwartzMar 22, 2007
  4. Bernt HansenMar 22, 2007
  5. Francis MoreauMar 23, 2007
  6. Francis MoreauMar 23, 2007
  7. Randal L. SchwartzMar 23, 2007
  8. Francis MoreauMar 23, 2007
  9. Junio C HamanoMar 23, 2007
  10. Francis MoreauMar 23, 2007
  11. Junio C HamanoMar 23, 2007
  12. Francis MoreauMar 23, 2007
  13. Junio C HamanoMar 24, 2007
  14. Francis MoreauMar 24, 2007
  15. Francis MoreauMar 23, 2007
  16. Junio C HamanoMar 24, 2007
  17. Francis MoreauMar 24, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.