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
Miguel Ruiz rbeni...@yahoo.es 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 this operating
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
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
Miguel Ruiz rbeni...@yahoo.es 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)
Jambunathan K kjambunat...@gmail.com writes:
(eval-after-load 'org
'(when (eq system-type 'gnu/linux)
^
^
'cygwin
(setcdr (assq 'system
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