emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Darlan Cavalcante Moreira <darcamo@gmail.com>
To: Christoph Herzog <rhogez@googlemail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: external link to openoffice.org file
Date: Sun, 20 Sep 2009 15:11:13 -0300	[thread overview]
Message-ID: <4ab67046.1408c00a.276c.5ffb@mx.google.com> (raw)
In-Reply-To: <h95hnm$3sp$1@ger.gmane.org>

At Sun, 20 Sep 2009 17:28:54 +0200,
Christoph Herzog wrote:
> 
> Having a poor understanding of emacs because I started to use it with 
> org-mode recently, I wonder whether there is a better way to make 
> external links to openoffice.org files than
> [[shell: ooffice -writer /path/to/document.odt]]
> 
> I also wonder whether it is possible to attach other than 
> emacs-compatible files?
> 
> Christoph
> 
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

I often put some links to .odt and .doc files in my org files.
At first i created a link type for open office with

#+LINK: OO elisp:(abrir-no-openoffice "%s")

where the function "abrir-no-openoffice" is defined as

(defun abrir-no-openoffice (documento)
  (start-process-shell-command 
   "openoffice" 
   "*scratch*" 
   (concat "openoffice.org -o " documento)))

With this i can simple use
[[OO:path_to_some_file_openoffice_understands][Description]], but I still have
to answer "yes" to open the file, since org-mode will execute a shell function.

Only later I realized that this is not necessary. I can simple use
[[some_file][Description]] and org-mode will use the information in the mailcap
file to open the file with the correct program, in this case openoffice.

-- 
Darlan Cavalcante Moreira
darcamo@gmail.com

      reply	other threads:[~2009-09-20 18:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-20 15:28 external link to openoffice.org file Christoph Herzog
2009-09-20 18:11 ` Darlan Cavalcante Moreira [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ab67046.1408c00a.276c.5ffb@mx.google.com \
    --to=darcamo@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rhogez@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).