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 08:42:02 +0530 Message-ID: <878uw0j8jh.fsf@gmail.com> References: <1981916.uUsSrgBaOc@linux-j9m3.site> <87wqjk2o5l.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoPMa-0000ks-11 for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 22:12:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoPMR-0006ag-JV for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 22:12:27 -0500 Received: from mail-pd0-x22e.google.com ([2607:f8b0:400e:c02::22e]:33211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoPMR-0006ab-CZ for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 22:12:19 -0500 Received: by mail-pd0-f174.google.com with SMTP id y13so23697152pdi.19 for ; Wed, 04 Dec 2013 19:12:18 -0800 (PST) In-Reply-To: <87wqjk2o5l.fsf@alphaville.bos.redhat.com> (Nick Dokos's message of "Wed, 04 Dec 2013 18:26:46 -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: Nick Dokos Cc: emacs-orgmode@gnu.org 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 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.