From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amos Bird Subject: org-export and open odt files always opened in emacs Date: Mon, 09 Oct 2017 15:27:38 +0800 Message-ID: <87efqcaihh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1STe-0005HI-KC for emacs-orgmode@gnu.org; Mon, 09 Oct 2017 03:27:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1STZ-0005YX-FG for emacs-orgmode@gnu.org; Mon, 09 Oct 2017 03:27:46 -0400 Received: from mail-pf0-x233.google.com ([2607:f8b0:400e:c00::233]:56676) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1STZ-0005Xu-8H for emacs-orgmode@gnu.org; Mon, 09 Oct 2017 03:27:45 -0400 Received: by mail-pf0-x233.google.com with SMTP id b85so1783286pfj.13 for ; Mon, 09 Oct 2017 00:27:42 -0700 (PDT) Received: from localhost ([2604:180:3:28::c542]) by smtp.gmail.com with ESMTPSA id k8sm12610695pgt.22.2017.10.09.00.27.40 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Oct 2017 00:27:40 -0700 (PDT) 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" To: "emacs-orgmode@gnu.org" --=-=-= Content-Type: text/plain; format=flowed Greetings! I'm trying to export and open odt files outside emacs. I've set #+BEGIN_SRC elisp (setq org-file-apps `(("\\.org$" . emacs) ("\\.cpp$" . emacs) (t . ,(cond (IS-MAC "open -R \"%s\"") (IS-LINUX "xdg-open \"%s\""))))) #+END_SRC However exported files are still opened inside emacs. What can I do? regards, Amos --=-=-= Content-Type: multipart/related; boundary="==-=-=" --==-=-= Content-Type: text/html

Greetings!

I'm trying to export and open odt files outside emacs. I've set

  (setq org-file-apps
        `(("\\.org$" . emacs)
          ("\\.cpp$" . emacs)
          (t . ,(cond (IS-MAC "open -R \"%s\"")
                      (IS-LINUX "xdg-open \"%s\"")))))

However exported files are still opened inside emacs. What can I do?

regards,
Amos

--==-=-=-- --=-=-=--