emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: Agenda and Reloading Changed Files


From: Chris Gray
Subject: [Orgmode] Re: Agenda and Reloading Changed Files
Date: Tue, 20 Oct 2009 12:25:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

Bernt Hansen wrote:

> Make sure you don't have any unsaved information in _any_ org files in
> emacs before you run this to sync your emacs buffers with the on disk
> files -- otherwise you'll lose information.

I got burned by that a couple of times, so now I use a script that does
the following:

--8<---------------cut here---------------start------------->8---
emacsclient -e "(save-some-buffers t)"

for dir in $DIRS; do
    cd "$dir"
    git pull

done

emacsclient -e "(org-revert-all-org-buffers)"
--8<---------------cut here---------------end--------------->8---

Cheers,
Chris





reply via email to

[Prev in Thread] Current Thread [Next in Thread]