From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan DeGruchy Subject: Re: auto-backing up your .emacs Date: Sat, 21 Dec 2013 09:50:06 -0500 Message-ID: <1A83F8AE-1E99-4646-B54B-15D510970864@degruchy.org> References: <20131221142330.4927760a@london> Mime-Version: 1.0 (1.0) Content-Type: multipart/alternative; boundary=Apple-Mail-FD79CEE3-572D-4C97-8BB2-FE2742A1F490 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuNsd-0006oc-T5 for emacs-orgmode@gnu.org; Sat, 21 Dec 2013 09:50:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VuNsZ-0008M5-KK for emacs-orgmode@gnu.org; Sat, 21 Dec 2013 09:50:15 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:36142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuNsZ-0008Ln-GI for emacs-orgmode@gnu.org; Sat, 21 Dec 2013 09:50:11 -0500 Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id B471920929 for ; Sat, 21 Dec 2013 09:50:08 -0500 (EST) In-Reply-To: <20131221142330.4927760a@london> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sharon Kimble Cc: "emacs-orgmode@gnu.org" --Apple-Mail-FD79CEE3-572D-4C97-8BB2-FE2742A1F490 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable You should look into version control, like Git. It makes this process easy a= nd integrates with Emacs with the Magit package.=20 Nathan DeGruchy nathan@degruchy.org > On Dec 21, 2013, at 9:23 AM, Sharon Kimble wrote:= >=20 >=20 > Can somebody help me please, I want to put this line into my .emacs - > 'cp ~/.emacs ~/.emacs.d/.emacs-$(date +%Y%m%d-%R)' but it works as part > of a bash script, but I don=E2=80=99t know elisp to get it working in my .= emacs. > What it does is save a dated and timed copy of your .emacs in your > ~/.emacs.d so that when you're trying things out and learning how to > use .emacs you'll always have a backup copy. A case in point, last > night I had org2blog working, today, after fiddling its stopped > working, but if I'd had this operational I could just revert to a known > and working .emacs. So, can you help please? >=20 > Thanks > Sharon. > --=20 > =EF=BB=BFA taste of linux =3D http://www.sharons.org.uk > efever =3D http://www.efever.blogspot.com/ > efever =3D http://sharon04.livejournal.com/ > my git repo =3D https://bitbucket.org/boudiccas/dots > Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.3.2 > Registered Linux user 561944 --Apple-Mail-FD79CEE3-572D-4C97-8BB2-FE2742A1F490 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
You should look into version control, l= ike Git. It makes this process easy and integrates with Emacs with the Magit= package. 

Nathan DeGruchy

On Dec 21, 2013, at= 9:23 AM, Sharon Kimble <boudic= cas@talktalk.net> wrote:

=
Can somebody help me please, I want to put this line i= nto my .emacs -
'cp ~/.emacs ~/.emacs.d/.emacs-$(date +%Y%m%= d-%R)' but it works as part
of a bash script, but I don=E2=80= =99t know elisp to get it working in my .emacs.
What it does= is save a dated and timed copy of your .emacs in your
~/.em= acs.d so that when you're trying things out and learning how to
use .emacs you'll always have a backup copy. A case in point, last
night I had org2blog working, today, after fiddling its stopped
working, but if I'd had this operational I could just revert t= o a known
and working .emacs. So, can you help please?

Thanks
Sharon.
-= -
=EF=BB=BFA taste of linux =3D http://www.sharons.org.uk
efever =3D http://www.efever.blogspot.com/=
efever =3D http://sha= ron04.livejournal.com/
my git repo =3D https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.3.2
Registered Linux user 561944

= --Apple-Mail-FD79CEE3-572D-4C97-8BB2-FE2742A1F490--