From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: org-edit-file ? Date: Wed, 20 Jul 2011 22:45:46 +0530 Message-ID: <81y5zshnzx.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjacj-000832-DK for emacs-orgmode@gnu.org; Wed, 20 Jul 2011 13:31:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjaNV-0001jR-Vj for emacs-orgmode@gnu.org; Wed, 20 Jul 2011 13:16:12 -0400 Received: from mail-pz0-f49.google.com ([209.85.210.49]:37598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjaNV-0001jD-GR for emacs-orgmode@gnu.org; Wed, 20 Jul 2011 13:16:09 -0400 Received: by pzk33 with SMTP id 33so541717pzk.8 for ; Wed, 20 Jul 2011 10:16:08 -0700 (PDT) In-Reply-To: (Dov Grobgeld's message of "Wed, 20 Jul 2011 17:26:37 +0300") 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: Dov Grobgeld Cc: emacs-orgmode Dov Grobgeld writes: > I just thought of an idea that I wonder if someone has implemented. > > While writing my journal I find myself wanting to insert a graphics > file, e.g. a svg file and I write file:foo.svg . After having written > the name I=A0 enter inkscape to create the contents of the file. To do > that I have to run inkscape manually and eventually doing saveas and > navigate to the correct directory to save the file. So my idea is to > have a a new command org-edit-file that would: > > If the file does not exist, copy a skeleton file to the filename > or generate the skeleton file by an emacs-function or by calling > an external application. > Call the configured editor application on the new file. > If invoked with Ctrl-u , allow the user to specify what editor to > run on the file, e.g. inkscape, or killustrator on svg files. > > Does something like this already exists? Start from C-h f org-open-file. > > Regards, > Dov > > > --=20