update configs

Amolith created

Change summary

dot_config/doom/config.org.tmpl | 27 +++++++++++++++++++++++++++
dot_config/doom/init.el         |  2 +-
dot_config/doom/packages.el     |  6 ++++++
3 files changed, 34 insertions(+), 1 deletion(-)

Detailed changes

dot_config/doom/config.org.tmpl 🔗

@@ -166,6 +166,33 @@ Add ~ox-hugo~ for exporting ~blog.org~ files to Hugo-compatible markdown
   :after ox)
 #+END_SRC
 
+#+BEGIN_SRC emacs-lisp
+(use-package helm-bibtex
+  :custom
+  (helm-bibtex-bibliography '("~/Documents/citations.bib"))
+  (reftex-default-bibliography '("~/Documents/citations.bib"))
+  (bibtex-completion-pdf-field "file")
+  :hook (Tex . (lambda () (define-key Tex-mode-map "\C-ch" 'helm-bibtex))))
+(use-package org-ref
+  :custom
+  (org-ref-default-bibliography "~/Documents/citations.bib"))
+(defun org-export-latex-no-toc (depth)
+  (when depth
+    (format "%% Org-mode is exporting headings to %s levels.\n"
+            depth)))
+(setq org-export-latex-format-toc-function 'org-export-latex-no-toc)
+(add-to-list 'org-latex-classes
+             '("apa6"
+               "\\documentclass{apa6}"
+               ("\\section{%s}" . "\\section*{%s}")
+               ("\\subsection{%s}" . "\\subsection*{%s}")
+               ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
+               ("\\paragraph{%s}" . "\\paragraph*{%s}")
+               ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
+(setq org-latex-pdf-process
+      '("latexmk -pdflatex='pdflatex -interaction nonstopmode' -pdf -bibtex -f %f"))
+#+END_SRC
+
 * Email configuration
 
 Attempt to load encrypted config (doesn't work for some reason)

dot_config/doom/init.el 🔗

@@ -88,7 +88,7 @@
        ;;biblio            ; Writes a PhD for you (citation needed)
        ;;debugger          ; FIXME stepping through code, to help you add bugs
        ;;direnv
-       ;;docker
+       docker
        editorconfig      ; let someone else argue about tabs vs spaces
        ;;ein               ; tame Jupyter notebooks with emacs
        (eval +overlay)     ; run code, run (also, repls)

dot_config/doom/packages.el 🔗

@@ -35,6 +35,12 @@
 (package! cook-mode
   :recipe (:host github :repo "cooklang/cook-mode"))
 
+(package! helm-bibtex
+  :recipe (:host github :repo "tmalsburg/helm-bibtex"))
+
+(package! org-ref
+  :recipe (:host github :repo "jkitchin/org-ref"))
+
 ;; If the package you are trying to install does not contain a PACKAGENAME.el
 ;; file, or is located in a subdirectory of the repo, you'll need to specify
 ;; `:files' in the `:recipe':