Re: [O] org-export-as-html-and-open problem
zhenjiang xu zhenjiang...@gmail.com wrote: It's odd. The value of org-file-apps-defaults-gnu is: ((remote . emacs) (system . mailcap) (t . mailcap)) And I checked my local mime file, which shows google-chrome is the default app to open html files: $ cat ~/.local/share/applications/mimeapps.list [Added Associations] application/epub+zip=FBReader.desktop; application/pdf=pdf.desktop; application/vnd.rn-realmedia=smplayer.desktop; application/x-matroska=smplayer.desktop; application/x-mimearchive=firefox.desktop; application/x-ole-storage=libreoffice-impress.desktop; audio/mpeg=audacious.desktop; text/html=google-chrome.desktop; video/mpeg=gnome-mplayer.desktop; x-scheme-handler/mailto=google-chrome.desktop;KMail2.desktop; [Default Applications] text/html=google-chrome.desktop x-scheme-handler/mailto=google-chrome.desktop Any idea? Bastien pointed you to the mailcap files. The mailcap man page says $HOME/.mailcap:/etc/mailcap:/usr/share/etc/mailcap:/usr/local/etc/mailcap -- default path for mailcap files. so those are the files to check. Nick On Mon, Feb 4, 2013 at 4:29 PM, Bastien b...@altern.org wrote: zhenjiang xu zhenjiang...@gmail.com writes: Thanks, Bastien. It's the default value - I've not changed it: org-file-apps is a variable defined in `org.el'. Its value is ((auto-mode . emacs) (\\.mm\\' . default) (\\.x?html?\\' . default) (\\.pdf\\' . default)) So you need to check the relevant variable: org-file-apps-defaults-gnu org-file-apps-defaults-macosx org-file-apps-defaults-windowsnt If the relevant variable uses the defaults (as I guess), you need to configure the mailcap file for your system See http://en.wikipedia.org/wiki/Mailcap HTH, -- Bastien Alternatives:
Re: [O] org-export-as-html-and-open problem
Sorry I forgot to mention that I don't have mailcap files in my Archlinux. On Wed, Feb 6, 2013 at 8:32 AM, Nick Dokos nicholas.do...@hp.com wrote: zhenjiang xu zhenjiang...@gmail.com wrote: It's odd. The value of org-file-apps-defaults-gnu is: ((remote . emacs) (system . mailcap) (t . mailcap)) And I checked my local mime file, which shows google-chrome is the default app to open html files: $ cat ~/.local/share/applications/mimeapps.list [Added Associations] application/epub+zip=FBReader.desktop; application/pdf=pdf.desktop; application/vnd.rn-realmedia=smplayer.desktop; application/x-matroska=smplayer.desktop; application/x-mimearchive=firefox.desktop; application/x-ole-storage=libreoffice-impress.desktop; audio/mpeg=audacious.desktop; text/html=google-chrome.desktop; video/mpeg=gnome-mplayer.desktop; x-scheme-handler/mailto=google-chrome.desktop;KMail2.desktop; [Default Applications] text/html=google-chrome.desktop x-scheme-handler/mailto=google-chrome.desktop Any idea? Bastien pointed you to the mailcap files. The mailcap man page says $HOME/.mailcap:/etc/mailcap:/usr/share/etc/mailcap:/usr/local/etc/mailcap -- default path for mailcap files. so those are the files to check. Nick On Mon, Feb 4, 2013 at 4:29 PM, Bastien b...@altern.org wrote: zhenjiang xu zhenjiang...@gmail.com writes: Thanks, Bastien. It's the default value - I've not changed it: org-file-apps is a variable defined in `org.el'. Its value is ((auto-mode . emacs) (\\.mm\\' . default) (\\.x?html?\\' . default) (\\.pdf\\' . default)) So you need to check the relevant variable: org-file-apps-defaults-gnu org-file-apps-defaults-macosx org-file-apps-defaults-windowsnt If the relevant variable uses the defaults (as I guess), you need to configure the mailcap file for your system See http://en.wikipedia.org/wiki/Mailcap HTH, -- Bastien Alternatives:
Re: [O] org-export-as-html-and-open problem
Hi Zhenjiang, zhenjiang xu zhenjiang...@gmail.com writes: Sorry I forgot to mention that I don't have mailcap files in my Archlinux. Then you'll need to configure `org-file-apps' to suit your needs. Best, -- Bastien
Re: [O] org-export-as-html-and-open problem
It's odd. The value of org-file-apps-defaults-gnu is: ((remote . emacs) (system . mailcap) (t . mailcap)) And I checked my local mime file, which shows google-chrome is the default app to open html files: $ cat ~/.local/share/applications/mimeapps.list [Added Associations] application/epub+zip=FBReader.desktop; application/pdf=pdf.desktop; application/vnd.rn-realmedia=smplayer.desktop; application/x-matroska=smplayer.desktop; application/x-mimearchive=firefox.desktop; application/x-ole-storage=libreoffice-impress.desktop; audio/mpeg=audacious.desktop; text/html=google-chrome.desktop; video/mpeg=gnome-mplayer.desktop; x-scheme-handler/mailto=google-chrome.desktop;KMail2.desktop; [Default Applications] text/html=google-chrome.desktop x-scheme-handler/mailto=google-chrome.desktop Any idea? On Mon, Feb 4, 2013 at 4:29 PM, Bastien b...@altern.org wrote: zhenjiang xu zhenjiang...@gmail.com writes: Thanks, Bastien. It's the default value - I've not changed it: org-file-apps is a variable defined in `org.el'. Its value is ((auto-mode . emacs) (\\.mm\\' . default) (\\.x?html?\\' . default) (\\.pdf\\' . default)) So you need to check the relevant variable: org-file-apps-defaults-gnu org-file-apps-defaults-macosx org-file-apps-defaults-windowsnt If the relevant variable uses the defaults (as I guess), you need to configure the mailcap file for your system See http://en.wikipedia.org/wiki/Mailcap HTH, -- Bastien
Re: [O] org-export-as-html-and-open problem
Hi Zhenjiang, zhenjiang xu zhenjiang...@gmail.com writes: when I type the keys `C-c C-e b', the html is generated but it is opened in emacs instead of an internet browser. Does anyone know why? Check the value of `org-file-apps'. C-h v org-file-apps RET Hope this helps, -- Bastien
Re: [O] org-export-as-html-and-open problem
Thanks, Bastien. It's the default value - I've not changed it: org-file-apps is a variable defined in `org.el'. Its value is ((auto-mode . emacs) (\\.mm\\' . default) (\\.x?html?\\' . default) (\\.pdf\\' . default)) On Mon, Feb 4, 2013 at 4:20 PM, Bastien b...@altern.org wrote: Hi Zhenjiang, zhenjiang xu zhenjiang...@gmail.com writes: when I type the keys `C-c C-e b', the html is generated but it is opened in emacs instead of an internet browser. Does anyone know why? Check the value of `org-file-apps'. C-h v org-file-apps RET Hope this helps, -- Bastien
Re: [O] org-export-as-html-and-open problem
zhenjiang xu zhenjiang...@gmail.com writes: Thanks, Bastien. It's the default value - I've not changed it: org-file-apps is a variable defined in `org.el'. Its value is ((auto-mode . emacs) (\\.mm\\' . default) (\\.x?html?\\' . default) (\\.pdf\\' . default)) So you need to check the relevant variable: org-file-apps-defaults-gnu org-file-apps-defaults-macosx org-file-apps-defaults-windowsnt If the relevant variable uses the defaults (as I guess), you need to configure the mailcap file for your system See http://en.wikipedia.org/wiki/Mailcap HTH, -- Bastien
[O] org-export-as-html-and-open problem
when I type the keys `C-c C-e b', the html is generated but it is opened in emacs instead of an internet browser. Does anyone know why? I am using builtin org-mode in Emacs 24.2 (7.8.11) and set google-chrome as default browser. Thanks, Zhenjiang