From 8e4a460d2d2366ecf9b1b6965bab32a490752258 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Sat, 26 Apr 2025 15:30:18 -0700 Subject: [PATCH] updating org stuff with bibtex support --- ensure.el | 1 + init.el | 11 +++-------- publish.el => org.el | 10 +++++++++- 3 files changed, 13 insertions(+), 9 deletions(-) rename publish.el => org.el (96%) diff --git a/ensure.el b/ensure.el index 1f8c161..0acddcd 100644 --- a/ensure.el +++ b/ensure.el @@ -11,6 +11,7 @@ '(ag auto-complete c-eldoc + ebib ellama elpy exec-path-from-shell diff --git a/init.el b/init.el index d9d62c6..2ee45de 100644 --- a/init.el +++ b/init.el @@ -260,13 +260,8 @@ present on disk." '(ellama-sessions-directory (cache-path "ellama-sessions")) '(global-font-lock-mode t) '(org-html-mathjax-template - "\12\12\12") - '(package-selected-packages - '(ag auto-complete c-eldoc ellama elpy exec-path-from-shell geiser - go-mode gruvbox-theme keychain-environment lua-mode luarocks - magit markdown-mode mwim nix-mode nix-modeline nix-ts-mode - nixos-options org-journal org-roam paredit pelican-mode - projectile racket-mode scpaste slime undo-tree)))) + "\12\12\12")) + (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. @@ -289,7 +284,7 @@ present on disk." (put 'downcase-region 'disabled nil) ;;;; org-mode publishing -(load (emacs-path "publish.el")) +(load (emacs-path "org.el")) (defvar *host-font-size* #s(hash-table diff --git a/publish.el b/org.el similarity index 96% rename from publish.el rename to org.el index a8e3508..8945a22 100644 --- a/publish.el +++ b/org.el @@ -3,6 +3,14 @@ ;;; ;;; publishing my notes docs +(use-package org-ref + :ensure t + :config + (setq org-ref-bibliography-files '("~/org/references.bib") + org-ref-default-bibliography "~/org/references.bib" + org-ref-pdf-directory "~/org/" + org-ref-notes-directory "~/org/")) + (use-package org-roam :after org :custom @@ -12,7 +20,7 @@ '(("d" "default" plain "%?" :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+date: %U\n#+options: toc:nil num:nil\n#+filetags:\n\n") - :unnarrowed t) + :unnarrowed t) ("a" "article" plain "- Source: [[%^{Url}][%^{Title}]]\n- Author: /%^{Author}/\n- Year: /%^{Year}/\n\n* Highlights / Notes\n" :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+date: %U\n#+options: toc:nil num:nil\n#+filetags: article:\n\n")