emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Miguel Ruiz <rbenit68@yahoo.es>
To: Jambunathan K <kjambunathan@gmail.com>
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: Sun, 1 Dec 2013 09:44:37 +0000 (GMT)	[thread overview]
Message-ID: <1385891077.93445.YahooMailNeo@web171904.mail.ir2.yahoo.com> (raw)
In-Reply-To: <87siudx4f4.fsf@gmail.com>

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

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 the default applications for this operating system." (cond ((eq system-type 'darwin)     org-file-apps-defaults-macosx)
((eq system-type 'cygwin)     org-file-apps-defaults-cygwin) 
 ((eq system-type 'windows-nt) org-file-apps-defaults-windowsnt)
   (t org-file-apps-defaults-gnu)))And it works for me so far. Your code is more compact but an ad-hoc solution as well. It is worth to take into consideration. Thanks again.

I suppose you would like to know I have also tweaked your directions about odt-mathml for cygwin:

(setq org-latex-to-mathml-convert-command 
  "java -jar $(cygpath -pw %j) -unicode -force -df %o %I")

(setq org-latex-to-mathml-jar-file 
"/home/user/tmp-odt/mathtoweb.jar")

with great success (Java 1.7 update 25, mathtoweb 4.0.0).

Miguel.







 


Jambunathan K <kjambunathan@gmail.com> writes:

>     (eval-after-load 'org
>       '(when (eq system-type 'gnu/linux)

                                ^^^^^^^^^
                       
         ^^^^^^^^^
                                'cygwin
>          (setcdr (assq 'system org-file-apps-defaults-gnu ) "cygstart %s")
>          (setcdr (assq t org-file-apps-defaults-gnu ) "cygstart %s")))

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

  reply	other threads:[~2013-12-01  9:47 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
2013-11-30 16:03       ` Jambunathan K
2013-12-01  9:44         ` Miguel Ruiz [this message]
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=1385891077.93445.YahooMailNeo@web171904.mail.ir2.yahoo.com \
    --to=rbenit68@yahoo.es \
    --cc=emacs-orgmode@gnu.org \
    --cc=kjambunathan@gmail.com \
    /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).