-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.el
52 lines (44 loc) · 1.69 KB
/
publish.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
;;; publish.el --- Description -*- lexical-binding: t; -*-
;;
;; Copyright (C) 2022 Jacob Hilker
;;
;; Author: Jacob Hilker <[email protected]>
;; Maintainer: Jacob Hilker <[email protected]>
;; Created: September 15, 2022
;; Modified: September 15, 2022
;; Version: 0.0.1
;; Keywords: abbrev bib c calendar comm convenience data docs emulations extensions faces files frames games hardware help hypermedia i18n internal languages lisp local maint mail matching mouse multimedia news outlines processes terminals tex tools unix vc wp
;; Homepage: https://github.com/jhilker/publish
;; Package-Requires: ((emacs "24.3"))
;;
;; This file is not part of GNU Emacs.
;;
;;; Commentary:
;;
;; Description
;;
;;; Code:
(setq user-emacs-directory "./.emacs")
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'use-package)
(use-package straight
:custom (straight-use-package-by-default t))
(use-package ox-hugo)
(setq org-link-abbrev-alist '(("github" . "https://github.com/%s")))
(dolist (org-file '("readme.org" "config.org" "home/devel/config/doom/config.org"))
(with-current-buffer (find-file-noselect org-file)
(message "exporting %s" org-file)
(org-hugo-export-wim-to-md :all-subtrees)))
(provide 'publish)
;;; publish.el ends here