emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Adam Porter <adam@alphapapa.net>
To: emacs-orgmode@gnu.org
Subject: Re: org-file-apps settings?
Date: Sat, 17 Sep 2016 10:30:01 -0500	[thread overview]
Message-ID: <87oa3mo87a.fsf@alphapapa.net> (raw)
In-Reply-To: CAN_Dec-vuBDod3rtDV8YXQz3XKOTgVTCn7ep=xn7WHMC+gW0AQ@mail.gmail.com

Matt Price <moptop99@gmail.com> writes:

> Huh. I am not really able to figure this out. I imagine that part of
> the problem may be that org tries to use mailcap as a method, and I
> don't have any mailcap files. So I attempted this, which does not
> work:
>
> '((system . "/usr/bin/xdg-open %s")
> (auto-mode . emacs) 
> ("\\.odt\\'" . system)
> ("\\.mm\\'" . default)
> ("\\.x?html?\\'" . default)
> ("\\.pdf\\'" . default) )
>
> *Messages* reports that xdg-open has been run, but the file doesn't
> actually run. seting the odt entry to "/usr/bin/libreoffice %s"
> doesn't seem to have any effect at all -- the file just opens in
> emacs. The only thing that works for now is this bizarre workaround:
> '((system . "/usr/bin/libreoffice %s")
> (auto-mode . emacs) 
> ("odt" . system)
> ("\\.odt\\'" . "system")
> ("\\.mm\\'" . default)
> ("\\.x?html?\\'" . default)
> ("\\.pdf\\'" . default))
> I don't undertand why this would work while the others don't. Of
> course, this is a pretty lousy workaround since now everything opens
> in libreoffice by default!

That is really weird, all right.  If it would help any, I could send you
my /etc/mailcap file.  Since Arch doesn't use one, maybe you could just
drop the one from my Ubuntu system in, and maybe it would work without
causing other problems...

      reply	other threads:[~2016-09-17 15:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-15 13:27 org-file-apps settings? Matt Price
2016-09-15 17:18 ` Adam Porter
2016-09-16  8:16 ` Colin Baxter
2016-09-16 11:46   ` Matt Price
2016-09-17 15:30     ` Adam Porter [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=87oa3mo87a.fsf@alphapapa.net \
    --to=adam@alphapapa.net \
    --cc=emacs-orgmode@gnu.org \
    /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).