From: "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: emacs cygwin external link file+sys:
Date: Mon, 27 May 2013 09:24:23 +0200 [thread overview]
Message-ID: <8661y4zxzs.fsf@somewhere.org> (raw)
In-Reply-To: 1431225.b6Wq7UWVqv@polloloco.siegel-tech.hme
Hi Aaron,
Aaron Siegel wrote:
> On Sunday, May 26, 2013 05:31:41 PM Aaron Siegel wrote:
>> I would like to use org-mode to manage my documents. I would like to be
>> able to click on a like and have the document open in the operate program
>> for the OS; example a pdf file will open in Adobe Acrobat Reader in windows
>> and Okular in my linux system.
>>
>> I am trying to migrate to emacs bundle with cygwin in hopes I can create a
>> configuration that is portable between the two systems. I have been using
>> the portableApplication emacs and it does work. I am able to click on a
>> link and open a document in a Window's application. Can I get this to work
>> with the cygwin version?
>>
>> Any recommendation on a emacs for Windows?
>
> I installed the Windows binarys distrubied by the emacs project, it works
> everything. I set the enviromental variables ~ and HOME to point to my home
> directory where my .emacs files are stored.
>
> That was it. I spent months fighting with PortableApps and the emacs bundle
> with cygwin.
And, for opening the right apps, using a .mailcap file can help [1] (where you
can specify apps to use when in Windows, or when in Linux, all in the same
file).
--8<---------------cut here---------------start------------->8---
## .mailcap -- MIME Viewer configuration file
#* Commentary:
# `%s' means "put the datafile name here when the viewer is executed"
#
# `test=test -n "$DISPLAY"' is used to determine if the current session is
# X-capable (by checking for the existence of a DISPLAY environment
# variable)
#* Code:
#...
application/pdf; "C:/Program Files (x86)/SumatraPDF/SumatraPDF.exe" "%s"
application/pdf; evince "%s"; test=sh -c 'test $DISPLAY'
application/pdf; pdftotext "%s" -; copiousoutput
#...
--8<---------------cut here---------------end--------------->8---
Best regards,
Seb
[1] At least, for opening Gnus attachments.
--
Sebastien Vauban
prev parent reply other threads:[~2013-05-27 7:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-26 23:31 emacs cygwin external link file+sys: Aaron Siegel
2013-05-27 2:55 ` Aaron Siegel
2013-05-27 7:24 ` Sebastien Vauban [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8661y4zxzs.fsf@somewhere.org \
--to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.