Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#!/usr/bin/env emacs -Q --script
;; Sandbox
user-emacs-directory (concat (file-name-directory load-file-name) ".emacs/")
package-user-dir (concat user-emacs-directory "elpa/")
use-package-always-ensure t
inhibit-message t) ; if there are errors, remove this.
; debug-on-error t) ; if there are errors, add this.
;; require package
(require 'package)
;; enable melpa
'("melpa" . "")
;; Update package list
(require 'use-package)
(use-package ox-hugo)
;; process input
(condition-case nil
(let (line)
(while (setq line (read-from-minibuffer ""))
(insert line)
(insert "\n")))
(error nil))
(princ (org-export-as 'hugo))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment