From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: Auto insert and change date in header? Date: Sat, 1 Aug 2015 17:45:48 +0300 Message-ID: References: <864nbh11z4.fsf@davemarq.austin.ibm.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c1deb408918b051c40fe57 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLY2o-00085L-WB for emacs-orgmode@gnu.org; Sat, 01 Aug 2015 10:45:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLY2o-00007U-0r for emacs-orgmode@gnu.org; Sat, 01 Aug 2015 10:45:50 -0400 Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]:32872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLY2n-00006t-QO for emacs-orgmode@gnu.org; Sat, 01 Aug 2015 10:45:49 -0400 Received: by pdbnt7 with SMTP id nt7so55728203pdb.0 for ; Sat, 01 Aug 2015 07:45:49 -0700 (PDT) In-Reply-To: <864nbh11z4.fsf@davemarq.austin.ibm.com> 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: Dave Marquardt Cc: org mode --001a11c1deb408918b051c40fe57 Content-Type: text/plain; charset=UTF-8 Hi all coming back to it after 3 years :) im wondering if anyone has a hook or anything like that that auto adds a date when he creates a header. and maybe also auto change the date each time the text under the header is changed? kind of simulating a timestamp type function :) best Z On Fri, Jul 26, 2013 at 11:49 PM, Dave Marquardt wrote: > Xebar Saram writes: > > > does any one know of a way to auto insert/change the date in each > sections > > header when the section is edited?IE have a date in the header showing > > last edited date. > > Is this technically possible? > > Try setting before-save-hook. See "(elisp) Saving Buffers". > > -Dave > > > --001a11c1deb408918b051c40fe57 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all

coming back to it after 3 years = :)

im wondering if anyone has a hook or anything l= ike that that auto adds a date when he creates a header. and maybe also aut= o change the date each time =C2=A0the text under the header is changed? kin= d of simulating a timestamp type function :)

best<= /div>

Z

On Fri, Jul 26, 2013 at 11:49 PM, Dave Marquardt <d= avemarq@us.ibm.com> wrote:
= Xebar Saram <zelta= kc@gmail.com> writes:

> does any one know of a way to auto insert/change the date in each sect= ions
> header when the section is edited?IE have a date in the header showing=
> last edited date.
> Is this technically possible?

Try setting before-save-hook.=C2=A0 See "(elisp) Saving Buffers= ".

-Dave



--001a11c1deb408918b051c40fe57--