Files
emacs.d/elisp/org-setup.el
2026-07-06 18:03:05 +01:00

51 lines
1.6 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")
;; 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)))
;; default apps to open files with org-mode
(setq org-file-apps
'((auto-mode . emacs)
("\\.mm\\'" . default)
("\\.pdf\\'" . "emacsclient %s")
("\\.djvu\\'" . "djview %s")))
;; define sequence of TODO keywords
(setq org-todo-keywords
'((sequence "TODO" "IN PROGRESS" "|" "DONE")))
;; Use biber to process bibtex
(setq 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
(setq 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"))))