emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Miguel Ruiz <rbenit68@yahoo.es>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip
Date: Sat, 30 Nov 2013 21:32:12 +0530	[thread overview]
Message-ID: <87zjolx4hn.fsf@gmail.com> (raw)
In-Reply-To: 1385808225.47874.YahooMailNeo@web171903.mail.ir2.yahoo.com


Ignore my earlier suggestion.

> (if (eq system-type 'cygwin)
> (add-hook 'org-mode-hook
> '(lambda ()
> (delete '("\\.x?html?\\'" . default) org-file-apps)
> (add-to-list 'org-file-apps '("\\.x?html?\\'" . "cygstart %s"))
> (delete '("\\.pdf\\'" . default) org-file-apps)
> (add-to-list 'org-file-apps '("\\.pdf\\'" . "cygstart %s"))
> (delete '("\\.odt\\'" . default) org-file-apps)
> (add-to-list 'org-file-apps '("\\.odt\\'" . "cygstart %s")))))

You can also remove the above settings.

----------------------------------------------------------------

Use the following setting instead.

`org-default-apps' uses the value of `org-file-apps-defaults-gnu' for
cygwin as well.  You just need to remove the mailcap entry in that
variable and replace it with "cygstart" as below.

    (eval-after-load 'org
      '(when (eq system-type 'gnu/linux)
         (setcdr (assq 'system org-file-apps-defaults-gnu ) "cygstart %s")
         (setcdr (assq t org-file-apps-defaults-gnu ) "cygstart %s")))

----------------------------------------------------------------
         
As you rightly suggest, `org-default-apps' doesn't handle `system-type'
value of 'cygwin.

  reply	other threads:[~2013-11-30 16:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-30  8:44 Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip Miguel Ruiz
2013-11-30 10:16 ` Jambunathan K
2013-11-30 10:43   ` Miguel Ruiz
2013-11-30 16:02     ` Jambunathan K [this message]
2013-11-30 16:03       ` Jambunathan K
2013-12-01  9:44         ` Miguel Ruiz
2013-12-02  6:54           ` Jambunathan K

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=87zjolx4hn.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rbenit68@yahoo.es \
    /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).