From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: AW Newsgroups: gmane.emacs.help Subject: Set org-file-apps to open a *.doc file under linux with Word ? Date: Wed, 04 Dec 2013 22:37:59 +0100 Message-ID: <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 1386193020 8331 80.91.229.3 (4 Dec 2013 21:37:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Dec 2013 21:37:00 +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:37:05 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 1VoK80-00069g-MY for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Dec 2013 22:37:04 +0100 Original-Received: from localhost ([::1]:50453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoK80-0006vE-9n for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Dec 2013 16:37:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoK6y-0005pB-BU for help-gnu-emacs@gnu.org; Wed, 04 Dec 2013 16:36:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoK6r-00037R-0n for help-gnu-emacs@gnu.org; Wed, 04 Dec 2013 16:36:00 -0500 Original-Received: from mailout03.t-online.de ([194.25.134.81]:40132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoK6q-00037J-QQ for help-gnu-emacs@gnu.org; Wed, 04 Dec 2013 16:35:52 -0500 Original-Received: from fwd27.aul.t-online.de (fwd27.aul.t-online.de ) by mailout03.t-online.de with smtp id 1VoK6n-00056a-Oe; Wed, 04 Dec 2013 22:35:49 +0100 Original-Received: from linux-j9m3.site (GvjSBMZQrhXJoGVPiCU-s-5Zwp9Ue3twoVIG66ctHLU0oGANhQzojuB+IDFRxEWg8v@[83.79.21.72]) by fwd27.t-online.de with esmtp id 1VoK6o-2YEouu0; Wed, 4 Dec 2013 22:35:50 +0100 User-Agent: KMail/4.11.2 (Linux/3.11.6-4-desktop; KDE/4.11.2; x86_64; ; ) X-ID: GvjSBMZQrhXJoGVPiCU-s-5Zwp9Ue3twoVIG66ctHLU0oGANhQzojuB+IDFRxEWg8v X-TOI-MSGID: 17defd28-9d7a-4289-8650-36495270adf0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 194.25.134.81 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:94836 Archived-At: 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