emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) o


From: Jambunathan K
Subject: Re: [O] 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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

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 via email to

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