emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-edit-file ?


From: Jambunathan K
Subject: Re: [O] org-edit-file ?
Date: Thu, 21 Jul 2011 16:24:42 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt)

Dov

I believe you would like to follow a link to svg file and have it open
in one of the many external editors depending on whether the link is
"visited" (read-only) or "opened" (edit). May be others could help you
here. 

What you need to begin with is a home-brewed elisp command to "view" or
"edit" a file based on (say a prefix modifier). 

Read on. Hints below.

> I'm not sure that emacs is the best tool to e.g. generate a template
> png file of a given size and given background, or a svg file. 

I don't think there are any svg or png experts here in this list and I
don't think any of us understand what you mean by template. Please
provide an example.

> I still don't feel that any of the proposed solutions solves the
> file:foo.svg edit scenario, where foo.svg does not exist yet. 

We never proposed solutions. We only gave you hints. Your questions are
better suited to help-gnu-emacs list. See URL:

https://lists.gnu.org/archive/html/help-gnu-emacs/

> Also I would rather differentiate between opening a few for viewing
> and opening a file for editing, as e.g. eog and inkview are good for
> viewing, whereas gimp and inkscape are better for editing.

You are the expert here and you have right to feel the way you feel -
"unsatisifed" and "disappointed". Not many of us use eog, inkview, gimp
or inkscape. At the minimum you should list how these apps open a given
file - ie, the exact command line string to open a given file and then
you can use `call-process' to launch the app.

Jambunathan K.

>
> Regards,
> Dov
>
> On Thu, Jul 21, 2011 at 12:32, Bastien <address@hidden> wrote:
>
>     Hi Dov,
>    
>     Jambunathan K <address@hidden> writes:
>    
>     >> 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.
>    
>     Such a functionality belongs to Emacs itself rather than
>     Org-mode.
>     Are you aware of existing templating facilities?
>    
>      http://emacs-template.sourceforge.net/
>    
>     >>     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.
>    
>     Indeed!
>    
>     Best,
>    
>     --
>      Bastien



reply via email to

[Prev in Thread] Current Thread [Next in Thread]