export.el 1.05 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 14 15 16

(require 'org)
(require 'htmlize)
(require 'rainbow-delimiters)
17
(require 'yaml-mode)
18

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

23 24 25 26 27 28 29 30 31
(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")))
32
  (setq org-export-with-sub-superscripts nil)
33 34 35 36
  (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" "."))