From mboxrd@z Thu Jan 1 00:00:00 1970 From: AW Subject: Re: Set org-file-apps to open a *.doc file under linux with Word ? Date: Thu, 05 Dec 2013 14:36:30 +0100 Message-ID: <3109824.nS2HuL8PkS@linux-j9m3.site> References: <1981916.uUsSrgBaOc@linux-j9m3.site> <87wqjk2o5l.fsf@alphaville.bos.redhat.com> <87vbz4htos.fsf@gmail.com> 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]:33455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoZ4n-0002Vp-FS for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 08:34:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoZ4g-0008Tw-5c for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 08:34:45 -0500 Received: from mailout11.t-online.de ([194.25.134.85]:37570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoZ4f-0008Ts-V1 for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 08:34:38 -0500 In-Reply-To: <87vbz4htos.fsf@gmail.com> 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 Am Donnerstag, 5. Dezember 2013, 08:48:11 schrieb Jambunathan K: > Nick Dokos writes: > > Off the top of my head, I would say > > > > (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\""))> > > i.e. just the command you provided enclosed in double quotes, except that > > > > certain characters within have to be escaped: > > " -> \" > > \ -> \\ > > > > The long string will probably be broken up into multiple lines by some > > mailer but it is supposed to be one long string with no newlines. I > > don't know if the spaces in the path will cause problems. > > > > Untested (except that I did evaluate the add-to-list and got no errors): > > no Word and no wine here. > > > > BTW, why not LibreOffice? Does it mishandle your .doc files? > > > > Nick > > The easiest way to get the same effect is to use > > M-x customize-variable RET org-file-apps RET > > and specify a command. Once it is saved, the .emacs will have the > resulting "nightmarish string" :-) > > ---------------------------------------------------------------- > > Another way to "quote" a string would be to use > > M-x pp-eval-expression RET (read-string "Enter string: ") RET > > and copy-paste the output from *Pp Eval Output* to .emacs or .el file. Thank you, customization worked, but it did not start word -- I'm going another way now. Regards, Alexander