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
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
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-
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
Jambunathan K writes:
> (eval-after-load 'org
> '(when (eq system-type 'gnu/linux)
^
^
'cygwin
> (setcdr (assq 'system org-file-apps-defaults-gnu ) "cygstart %s")
>
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
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