From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Baier Subject: Re: auto-backing up your .emacs Date: Sat, 21 Dec 2013 17:12:30 +0100 Message-ID: <87mwjuqj2p.fsf@gmail.com> References: <20131221142330.4927760a@london> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuPAm-0005dx-KA for emacs-orgmode@gnu.org; Sat, 21 Dec 2013 11:13:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VuPAZ-0006Qf-NQ for emacs-orgmode@gnu.org; Sat, 21 Dec 2013 11:13:04 -0500 Received: from mail-bk0-x22b.google.com ([2a00:1450:4008:c01::22b]:48673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuPAZ-0006QB-Fr for emacs-orgmode@gnu.org; Sat, 21 Dec 2013 11:12:51 -0500 Received: by mail-bk0-f43.google.com with SMTP id mz12so1560083bkb.16 for ; Sat, 21 Dec 2013 08:12:50 -0800 (PST) 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" You could look into the backup utilities that emacs provides out of the box. See the manual for further explanation: (info "(Emacs) Backup"). On 2013-12-21 15:23 Sharon Kimble wrote: > 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? > > Thanks > Sharon. HTH, -- Alexander Baier