From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: auto-backing up your .emacs Date: Sat, 21 Dec 2013 17:07:24 +0000 Message-ID: <20131221170724.650a825a@london> References: <20131221142330.4927760a@london> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/w180/RgN44_7r8LqAwoYR++"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuQ1b-0007GX-B5 for emacs-orgmode@gnu.org; Sat, 21 Dec 2013 12:07:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VuQ1W-00054r-Qq for emacs-orgmode@gnu.org; Sat, 21 Dec 2013 12:07:39 -0500 Received: from out1.ip05ir2.opaltelecom.net ([62.24.128.241]:59740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuQ1W-00054g-KE for emacs-orgmode@gnu.org; Sat, 21 Dec 2013 12:07:34 -0500 In-Reply-To: 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: emacs-orgmode@gnu.org --Sig_/w180/RgN44_7r8LqAwoYR++ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, 21 Dec 2013 16:16:20 +0000 (UTC) Thierry Banel wrote: > Sharon Kimble talktalk.net> writes: >=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 work= ing > > 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 > Hi Sharon >=20 > Emacs already have a builtin file version control. > If you use Emacs itself to edit your .emacs, > it will most likely create a .emacs~, which is a backup. > This is controlled by the variable make-backup-files. > Add this line to your .emacs: > (setq make-backup-files t) >=20 > You may want to have several backup files. > They will be numbered with names like .emacs.~7~ > Then add this line to your .emacs: > (setq version-control t) >=20 > Of course this works for all files visited by Emacs, not only .emacs. >=20 > Look at the documentation: > within Emacs, type C-h i > then navigate to > Emacs > Files > Saving > Backup=20 >=20 Thanks for this. I called up the package menu and found 'backup-each-save' so I've installed that to try out. Hopefully it will work okay, but time will tell :) 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 --Sig_/w180/RgN44_7r8LqAwoYR++ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQIcBAEBAgAGBQJStcrUAAoJEDaBgBkK+INbJ/EP/itDdq1KreYwDwhjLSRQw2Nc xcm/PjFOAt9eRNG88BNav4D4gBU75JXcLXBX68N5ZEe7/mMsAAV0hxVfNiPcLpCT 5ttuaaYf+lwbiA0AszC1CPd3LcXh6OsCWrJZxNCWW2/7kPj7KSXidP7WqTxTGymr 1S+mO63JT8T0q0AypVL/8kXkse9E16p/HNoXVr+68iO2RDMkDCDzj0SObsHlE/bW LGeSC3LqLBT6CkEmKrqKJXMr/Jarae3rshOg2cdvquzpV4/lwMzG+Pi/NwOEzrUF iM3LGUnzg9tojG+DQ9TzCMN9St7WKhNfMWUf94LZ1QztTqoy5+nZTvy0DUoPSnuq B1d13A6hDk/L4SZgLELR5qAk/uzpApEpyVM3BqInIunvts1uTQBMGAAKaPx/2u13 lH3tJ7d4j8A2t+jIbiZiETwYzjx5CExQUESR391H9DyklhU91Uuh8CUljJ3bfNTa WQ/ZAi3U8tn9Azq3T4Mr6USSf+r4Jj3EsRSXTGayFw+zYSZAA6vVMp0vWcPoGBJl iso2Rxf+y5Y9P5OIyVFQxEh4SrW59iL/n82b85t3bUtYRO6aQf0nmEYL6QFmbV10 jDtbZNJgd0Z/Vf7VuriyA4fCp/ZgYl9NosuPAwKHipz1YHiDN9MXM0P3ZaFrYkHQ p2TfCHpLS3yoXmWhfOUt =/7xf -----END PGP SIGNATURE----- --Sig_/w180/RgN44_7r8LqAwoYR++--