   :defer t
   :config
   ;; Run prog mode hooks for bibtex
-  (add-hook 'bibtex-mode-hook (lambda () (run-hooks 'prog-mode-hook)))
 
   ;; Use a modern BibTeX dialect
   (bibtex-set-dialect 'biblatex))
+  ;; Run prog mode hooks for bibtex
+  :hook (bibtex-mode-hook . (lambda () (run-hooks 'prog-mode-hook))))
 
 ;; reftex
 ;; TeX cross-reference management

(use-package diff-hl
  :config
  (global-diff-hl-mode t)
  (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh))

;; treemacs
;; A tree style file explorer package

;; org-bullets
;; Show bullets in org-mode as UTF-8 characters
(use-package org-bullets
  :hook
  (org-mode-hook . (lambda () (org-bullets-mode 1))))

;; undo-tree
;; Treat undo history as a tree
