From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Dietsche Subject: Re: [PATCH] org-capture, removing whitespace from new captures Date: Wed, 14 Sep 2011 10:44:07 +0200 Message-ID: <87ipovcy3s.fsf@rat.lan> References: <20110913211926.GB15861@shift> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3l4w-00010u-Kb for emacs-orgmode@gnu.org; Wed, 14 Sep 2011 04:44:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3l4s-00015d-67 for emacs-orgmode@gnu.org; Wed, 14 Sep 2011 04:44:22 -0400 Received: from www85.your-server.de ([213.133.104.85]:58265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3l4s-00015F-1S for emacs-orgmode@gnu.org; Wed, 14 Sep 2011 04:44:18 -0400 In-Reply-To: <20110913211926.GB15861@shift> (paulusm@telstra.com's message of "Wed, 14 Sep 2011 07:19:26 +1000") 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: paulusm@telstra.com Cc: emacs-orgmode@gnu.org paulusm@telstra.com writes: > I found myself manually "cleaning" most CAPTURE buffers of whitespace > prior to committing them with C-c C-c. The attached patch adds a new > property :whitespace-cleanup to the org-capture-templates. Thanks for pointing to whitespace-cleanup, I've done this manually cleaning as well. You could use org-capture-before-finalize-hook for this: (add-hook 'org-capture-before-finalize-hook 'whitespace-cleanup) Regards, Olaf