Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I checked out your articles and I like your writing style!

I thought about doing batch export but ended up being too lazy to integrate it in my release flow. My compromise is to use this snippet:

    (defun make-blogging-mode ()
      (interactive)
      (toggle-word-wrap)
      (toggle-truncate-lines)
      (flycheck-mode)
      (flycheck-vale-toggle-enabled)
      (add-hook 'after-save-hook 'org-mode-export-hook)
      )
And this find-file hook in my blog template:

    # -*- find-file-hook: make-blogging-mode -*-
My new computer is beefy enough that I barely notice the export on save. I wouldn't recommend this on slower boxes as it freezes emacs for a bit.


Thanks! :) There is also 'org-export-in-background' which can export asynchronously! https://orgmode.org/manual/The-Export-Dispatcher.html


TIL. Thank you




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: