From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: no org-export-to-html-and-open since distribution switch Date: Wed, 17 Jun 2015 17:02:25 -0400 Message-ID: <87lhficala.fsf@alphaville.usersys.redhat.com> References: <5581C59F.7040401@ehlu.name> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5KTo-0001Kl-CU for emacs-orgmode@gnu.org; Wed, 17 Jun 2015 17:02:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5KTl-0000bI-6J for emacs-orgmode@gnu.org; Wed, 17 Jun 2015 17:02:40 -0400 Received: from plane.gmane.org ([80.91.229.3]:53786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5KTk-0000bE-Us for emacs-orgmode@gnu.org; Wed, 17 Jun 2015 17:02:37 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Z5KTg-0001YI-5E for emacs-orgmode@gnu.org; Wed, 17 Jun 2015 23:02:32 +0200 Received: from pool-108-20-41-47.bstnma.fios.verizon.net ([108.20.41.47]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Jun 2015 23:02:32 +0200 Received: from ndokos by pool-108-20-41-47.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Jun 2015 23:02:32 +0200 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 Sven Ehret writes: > Hi List, > > since I have switched distributions from Mint to Arch, I have lost one > of my most-loved Org features: Export to HTML and open. > > ... > > When I command M-x org-export-to-html-and-open, it says [No match]. > That function might have existed in org 7.9.x and earlier, but the exporter underwent major restructuring in the org 8.0 release and a lot of things were changed/renamed. The current version does this for C-c C-e h o: (org-open-file (org-html-export-to-html )) org-html-export-to-html writes an HTML file and org-open-file opens it. See the doc string for the latter: C-h f org-open-file RET You might have to customize org-file-apps to override the default for the HTML file type (although see below first). For me, the default is "mailcap" (determined through the system specific variable org-file-apps-defaults-gnu - the default is the "t" entry), so it uses the entry in ~/.mailcap or /etc/mailcap (if it exists). Mine says: text/html; /usr/bin/google-chrome %s so it opens it in chrome. The problem here is that there are too many cooks in the kitchen. I prefer to leave things at default as far as org is concerned and use mailcap (which is used by other applications as well). Other people prefer to hardwire things into org-file-apps which is fine for org but of course it is not used by any other applications. Other people prefer to route everything through their desktop environment's Open function (e.g xdg-open for Gnome) which uses its own routing mechanism (generally different from mailcap). I suggest you pick *one* method and stick with it through thick and thin: ignore everything else. Using more than one leads to madness. The path of least resistance is probably customizing org-file-apps. > The symptoms are very much like described in > http://emacs.stackexchange.com/questions/2387/browser-not-opening-when-exporting-html-from-org-mode > , but unfortunately there is no documented solution. > > My org version reports as „Org-mode version 8.2.10 > (8.2.10-41-g42228a-elpaplus @ > /home/ehret/.emacs.d/elpa/org-plus-contrib-20150615/)“. > > I tried moving the elpa installation out of the way and installing a > distribution package, aur/emacs-org-mode, but the result is the same. > > Emacs will likely always feel alien to me, but my love to org mode is > bitter sweeeet. > > Any help or hints are greatly appreciated! > > Best, Sven. HTH, Nick