41 lines
1.8 KiB
EmacsLisp
41 lines
1.8 KiB
EmacsLisp
;; open org file with everything folded
|
|
(setq org-startup-folded t
|
|
;; preserve indentation on output
|
|
org-src-preserve-indentation t
|
|
;; some config for org-babel
|
|
org-confirm-babel-evaluate nil
|
|
org-src-fontify-natively t
|
|
org-src-tab-acts-natively t
|
|
org-hide-emphasis-markers t
|
|
org-babel-python-command "python3"
|
|
;; default apps to open files with org-mode
|
|
org-file-apps '((auto-mode . emacs)
|
|
("\\.mm\\'" . default)
|
|
("\\.pdf\\'" . "emacsclient %s")
|
|
("\\.djvu\\'" . "djview %s"))
|
|
;; define sequence of TODO keywords
|
|
org-todo-keywords '((sequence "TODO" "IN PROGRESS" "|" "DONE"))
|
|
;; Use biber to process bibtex
|
|
org-latex-pdf-process '("xelatex -interaction nonstopmode -output-directory %o %f"
|
|
"biber %b"
|
|
"xelatex -interaction nonstopmode -output-directory %o %f"
|
|
"xelatex -interaction nonstopmode -output-directory %o %f")
|
|
;; org-capture templates
|
|
org-capture-templates '(("l" "Library" entry (file "~/library/index.org")
|
|
"* %A %^g\n %^{Author}p\n %^{Edition}p\n %^{Format}p")
|
|
("m" "Albums" entry (file "~/repos/listas/music.org")
|
|
"* %? %^g\n %^{Autor}p\n %^{Ano}p\n %^{Colecionado}p")
|
|
("n" "Quick notes" item (file "~/org/quick.org"))))
|
|
;; load languages babel
|
|
(org-babel-do-load-languages
|
|
'org-babel-load-languages
|
|
'((C . t)
|
|
(js . t)
|
|
(emacs-lisp . t)
|
|
;; (eukleides . t) TODO search for ob-eukleides
|
|
(haskell . t)
|
|
(scheme . t)
|
|
(shell . t)
|
|
(python . t)
|
|
(plantuml . t)))
|