Files
emacs.d/elisp/org-setup.el
Mateus Pinto Rodrigues 58c3bd6728 Initial commit
2017-11-11 15:15:10 -02:00

68 lines
1.6 KiB
EmacsLisp

;; The following lines are always needed. Choose your own keys.
;; Org mode keys
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cc" 'org-capture)
(global-set-key "\C-cb" 'org-iswitchb)
;; org publish
(require 'ox-publish)
(setq org-publish-project-alist
'(("org-notes"
:base-directory "~/org/"
:base-extension "org"
:publishing-directory "~/html/"
:recursive t
:publishing-function org-html-publish-to-html
:headline-leves 4 ;Just the default for this project.
:with-toc nil
:section-numbers nil
:with-author f
:with-creator nil
:with-date nil
:with-timestamps nil
:with-tage nil
:html-preamble nil
:html-postamble nil
:html-validation-link f
:html-doctype "html5"
)
("org-static"
:base-directory "~/org/"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg"
:publishing-directory "~/html/"
:recursive t
:publishing-function org-publish-attachment
)
("org" :components ("org-notes" "org-static"))))
;; some config for org-babel
(setq org-confirm-babel-evaluate nil
org-src-fontify-natively t
org-src-tab-acts-natively t)
;;load languages babel
(org-babel-do-load-languages
'org-babel-load-languages
'((clojure . t)
(emacs-lisp . t)
(haskell . t)
(scheme . t)
(shell . t)))
;;bullets in org-mode
(require 'org-bullets)
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
;; default apps to open files with org-mode
(setq org-file-apps
(quote
((auto-mode . emacs)
("\\.mm\\'" . default)
("\\.x?html?\\'" . "seamonkey")
("\\.pdf\\'" . "mupdf %s")
("\\.djvu\\'" . "djview %s"))))