export.el 1.1 KB
Newer Older
1
(require 'package)
Guilherme Henrique's avatar
Guilherme Henrique committed
2

3 4 5
(package-initialize)
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
                         ("org" . "http://orgmode.org/elpa/")))
Guilherme Henrique's avatar
Guilherme Henrique committed
6

7
(package-refresh-contents)
Guilherme Henrique's avatar
Guilherme Henrique committed
8

9 10 11
(package-install 'org-plus-contrib)
(package-install 'htmlize)
(package-install 'rainbow-delimiters)
12
(package-install 'yaml-mode)
13
(package-install 'clojure-mode)
14 15 16 17

(require 'org)
(require 'htmlize)
(require 'rainbow-delimiters)
18
(require 'yaml-mode)
19
(require 'clojure-mode)
20

Guilherme Henrique's avatar
Guilherme Henrique committed
21
(defun org-publish-with-different-timestamp-directory ()
22 23 24
  (setq org-publish-timestamp-directory ".timestamps/")
  (org-publish-all))

25 26 27 28 29 30 31 32 33
(with-eval-after-load 'rainbow-delimiters
  (add-hook 'prog-mode-hook #'rainbow-delimiters-mode))

(with-eval-after-load 'org
  (org-babel-do-load-languages
   'org-babel-load-languages
   '((dot . t)))
  (defun my-org-confirm-babel-evaluate (lang body)
    (not (string= lang "dot")))
34
  (setq org-export-with-sub-superscripts nil)
35 36 37 38
  (setq org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate)
  (setq org-html-htmlize-output-type 'css)
  (load-file "posts-config.el")
  (zezin-set-posts-info "org" "_posts" "."))