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

2013-12-01 Thread Jambunathan K
Miguel Ruiz writes: > (defconst org-file-apps-defaults-cygwin > '((remote . emacs) > (t . "cygstart %s") > (system . "cygstart %s") > ("ps.gz" . "gv %s") > ("eps.gz" . "gv %s") > ("dvi" . "xdvi %s") > ("fig" . "xfig %s"))) > (defun org-default-apps () > "Return the default applications for thi

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

2013-12-01 Thread Miguel Ruiz
Thank you, Jambunathan. I was exploring (defconst org-file-apps-defaults-cygwin   '((remote . emacs)     (t . "cygstart %s")     (system . "cygstart %s")     ("ps.gz"  . "gv %s")     ("eps.gz" . "gv %s")     ("dvi"    . "xdvi %s")     ("fig"    . "xfig %s"))) (defun org-default-apps () "Return

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

2013-11-30 Thread Jambunathan K
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-

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

2013-11-30 Thread Jambunathan K
Miguel Ruiz writes: Remove all your configurations and try this. This will use windows "open". (require 'org) ;; Make sure org is loaded (defun org-default-apps () "Return the default applications for this operating system." (cond ((eq system-type 'darwin) org-file-apps-defaults-m

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

2013-11-30 Thread Jambunathan K
Jambunathan K writes: > (eval-after-load 'org > '(when (eq system-type 'gnu/linux) ^ ^ 'cygwin > (setcdr (assq 'system org-file-apps-defaults-gnu ) "cygstart %s") >

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

2013-11-30 Thread Miguel Ruiz
Thank you, Jambunathan. 1/ I'm running Emacs 24.3.1 (i686-pc-cygwin) of 2013-08-14 on moufang; it's Windows Emacs built into cygwin, so you don't have to have X11 installed in cygwin for graphical Emacs. 2/ I forgot to say I'm a running mintty 1.1.3 so "open" is not available, I can use cygsta

[O] Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip

2013-11-30 Thread Miguel Ruiz
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-app