emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip
@ 2013-11-30  8:44 Miguel Ruiz
  2013-11-30 10:16 ` Jambunathan K
  0 siblings, 1 reply; 7+ messages in thread
From: Miguel Ruiz @ 2013-11-30  8:44 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1337 bytes --]

Hello,

I use cygwin only cli, so I depend on html, pdf and odt MSWindows viewer.

I could manage to add this code to my .emacs:

(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")))))

so I can org-open-file html/pdf/odt files successfully.

But with (require 'ox-odt) + C-c C-e o O , my odt files open in emacs instead of LibreOffice.

I am aware of (org-open-file (org-odt-export-to-odt nil s v) 'system) line in ox-odt.el: 
- If I run (org-open-file "file.odt") I get the desired behaviour; 
- If I run (org-open-file "file.odt" 'system) I get file.odt open in emacs as a zip file.

So:

- How can redefine or supress 'system in (org-open-file (org-odt-export-to-odt nil s v) 'system) line in ox-odt.el?

- May I propose to developers to include (defconst org-file-apps-defaults-cygwin ... or similar?

- Could you help me in any other way?

Thank you so much.

Miguel Ruiz,
Sevilla (Spain).

[-- Attachment #2: Type: text/html, Size: 2054 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-12-02  6:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-11-30 16:03       ` Jambunathan K
2013-12-01  9:44         ` Miguel Ruiz
2013-12-02  6:54           ` Jambunathan K

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).