Monday, December 4, 2023

fixing doom emacs not opening exported org in firefox

so you wrote some text in doom emacs

space m + e to export,  ctrl + b for body only

h + o for html export and open but it doesnt open? 

WHY!!! emacs doesnt know how to open the browser

== how to fix ==

on linux mint edit:

mint/.config/doom/config.el

then add this:

;; SET BROWSER TO OPEN WITH FIREFOX --THIS IS YOUR CUSTOM THING YOU ADDED --
(after! org
  (setq org-file-apps
        '((auto-mode . emacs)
          ("\\.mm\\'" . default)
          ("\\.x?html?\\'" . "/usr/bin/firefox %s")
          ("\\.pdf\\'" . default))))

 


after you've done that reload doom emacs config with:

alt x doom/reload

adding custom stylesheet:

#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="styles.css"/>
#+SETUPFILE: https://fniessen.github.io/org-html-themes/org/theme-readtheorg.setup 
 
 
 
 
 
 

No comments:

Post a Comment