From mboxrd@z Thu Jan 1 00:00:00 1970 From: AW Subject: Set org-file-apps to open a *.doc file under linux with Word ? Date: Wed, 04 Dec 2013 22:56:32 +0100 Message-ID: <1981916.uUsSrgBaOc@linux-j9m3.site> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoKP2-0004SG-JO for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 16:54:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoKOv-0001zo-AB for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 16:54:40 -0500 Received: from mailout03.t-online.de ([194.25.134.81]:44646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoKOv-0001ze-3Z for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 16:54:33 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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