From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Set org-file-apps to open a *.doc file under linux with Word ? Date: Thu, 05 Dec 2013 20:47:40 +0530 Message-ID: <87a9gfjpij.fsf@gmail.com> References: <1981916.uUsSrgBaOc@linux-j9m3.site> <87wqjk2o5l.fsf@alphaville.bos.redhat.com> <87vbz4htos.fsf@gmail.com> <3109824.nS2HuL8PkS@linux-j9m3.site> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Voagx-0008GD-FP for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 10:18:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Voagq-0004wQ-1F for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 10:18:15 -0500 Received: from plane.gmane.org ([80.91.229.3]:46579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Voagp-0004wB-QG for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 10:18:07 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Voagm-00067P-CA for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 16:18:04 +0100 Received: from 115.241.6.102 ([115.241.6.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Dec 2013 16:18:04 +0100 Received: from kjambunathan by 115.241.6.102 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Dec 2013 16:18:04 +0100 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 --=-=-= Content-Type: text/plain AW writes: > Thank you, customization worked, but it did not start word -- I'm going > another way now. I am playing a guessing game and don't know what I am saying. Try this. M-: (shell-quote-argument (read-string "Enter string:")) ^^^^^^^^^^^^^^^^^^^^ When prompted enter "%s" Now put whatever string you get in *Pp Eval Output* DIRECTLY in to your .emacs. See the attached snippet.el for an idea of what I get. Instead of passing env as part of the command, I think you can add this to your .emacs. (setenv "WINEPREFIX" "/home/AW/.wine-office") You can also do M-x setenv to set environment variables. --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=snippet.el Content-Transfer-Encoding: quoted-printable (custom-set-variables '(org-file-apps (quote ((auto-mode . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . default) ("\\.pdf\\'" . default) ("\\.doc\\'" . "env\\ WINEPREFIX\\=3D\\\"/home/AW/.wine-office\\\"\\ w= ine\\ \\\"C\\:\\\\windows\\\\command\\\\start.exe\\\"\\ /Unix\\ \\\"/home/A= W/.wine-office/dosdevices/c\\:/users/AW/Start\\ Menu/Programs/Microsoft\\ O= ffice/Microsoft\\ Word\\ 2010.lnk\\\"\\ \\\"\\%s\\\""))))) =09=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 --=-=-=--