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:51:04 +0530 Message-ID: <8738m7jpcv.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]:56619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Voanj-0001Kh-F5 for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 10:25:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Voanc-0007O0-64 for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 10:25:15 -0500 Received: from plane.gmane.org ([80.91.229.3]:37368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Voanc-0007NZ-0K for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 10:25:08 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VoanX-0002dJ-QT for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 16:25:03 +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:25:03 +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:25:03 +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 Cc: 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 really don't know what I am saying. Try this. M-: (shell-quote-argument (read-string "Enter string:")) ^^^^^^^^^^^^^^^^^^^^ When prompted enter whatever wine whatever "%s" Now put whatever string you get in *Pp Eval Output* DIRECTLY in to your .emacs. See the attached snippet.el for 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 --=-=-=--