From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: AW Newsgroups: gmane.emacs.help Subject: Re: Set org-file-apps to open a *.doc file under linux with Word ? Date: Wed, 04 Dec 2013 22:55:01 +0100 Message-ID: <1976274.DPP1Rmr8bZ@linux-j9m3.site> References: <1421918.LAQolQVqeO@linux-j9m3.site> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: ger.gmane.org 1386193997 19938 80.91.229.3 (4 Dec 2013 21:53:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Dec 2013 21:53:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 04 22:53:22 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VoKNl-0007uf-6t for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Dec 2013 22:53:21 +0100 Original-Received: from localhost ([::1]:50499 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoKNk-00034D-QV for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Dec 2013 16:53:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoKNS-00033y-C9 for help-gnu-emacs@gnu.org; Wed, 04 Dec 2013 16:53:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoKNK-0001Jg-W7 for help-gnu-emacs@gnu.org; Wed, 04 Dec 2013 16:53:02 -0500 Original-Received: from mailout09.t-online.de ([194.25.134.84]:36128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoKNK-0001Jc-PT for help-gnu-emacs@gnu.org; Wed, 04 Dec 2013 16:52:54 -0500 Original-Received: from fwd06.aul.t-online.de (fwd06.aul.t-online.de ) by mailout09.t-online.de with smtp id 1VoKNI-0005PH-Fz; Wed, 04 Dec 2013 22:52:52 +0100 Original-Received: from linux-j9m3.site (Z1VFt8ZbYhpTePgl-0QBvjcqrZ4xASrdIzCY5hsVqrhnJ0bW70x2i2+MI16a4GtwXx@[83.79.21.72]) by fwd06.t-online.de with esmtp id 1VoKNI-0H1Nho0; Wed, 4 Dec 2013 22:52:52 +0100 User-Agent: KMail/4.11.2 (Linux/3.11.6-4-desktop; KDE/4.11.2; x86_64; ; ) In-Reply-To: <1421918.LAQolQVqeO@linux-j9m3.site> X-ID: Z1VFt8ZbYhpTePgl-0QBvjcqrZ4xASrdIzCY5hsVqrhnJ0bW70x2i2+MI16a4GtwXx X-TOI-MSGID: 7d48b360-ca8e-4da0-99ee-66a323b77067 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 194.25.134.84 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94837 Archived-At: Wrong list! Sorry for the noise! Am Mittwoch, 4. Dezember 2013, 22:37:59 schrieb AW: > Hi! > > I'm using orgmode as a replacement for folders, you know, real folders, lots > of paper inside. > > In my orgfiles I link to many other files, mostly *.tex and *.pdf, links > look like > > [[./foo.pdf][About foo]] > > Sometimes I can't avoid to link to doc or docx files. So I need my linux pc > to start word and load a certain file. > > I'd like to link to *.doc files in the same way: > > [[./bar.doc][About that draft]] > > But how can I set org-file-apps to open a *.doc file with MS Word under > Linux? Word works, more or less. > > To start word the command is: > > env WINEPREFIX="/home/AW/.wine-office" wine "C:\windows\command\start.exe" > /Unix "/home/AW/.wine-office/dosdevices/c:/users/AW/Start > Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk" > > But how in the world can I put in my .emacs file? I tried: > > (add-to-list 'org-file-apps > '("\\.doc" . "\"env WINEPREFIX="/home/AW/.wine-office" wine > "C:/windows/command/start.exe" > /Unix "/home/AW/.wine-office/dosdevices/c:/users/AW/Start > Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk"\" %s")) > > But I get: > > Invalid read syntax: ". in wrong context" > > Any suggestions would be welcome! > > Regards, > > Alexander