From cc91d6b7b7205df9a8cb664ad8959a9ae5d24ec0 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Mon, 14 Oct 2024 02:10:55 -0700 Subject: [PATCH] Update stuff --- init.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.el b/init.el index 49db404..f42511e 100644 --- a/init.el +++ b/init.el @@ -1097,6 +1097,11 @@ otherwise, call `bibtex-find-text'." "Set up `bibtex-mode' indentation stuff." (setq-local indent-line-function 'my/bibtex-indent-line electric-indent-chars '(?\n ?\{ ?\} ?,))) +(defun my/-bibtex-fix-fill-prefix () + "`bivtex-mode' has a bad habbit of messing up `fill-prefix'." + (when (eq major-mode 'bibtex-mode) + (setq-local fill-prefix nil))) +(advice-add 'bibtex-mode :after 'my/-bibtex-fix-fill-prefix) (add-hook 'bibtex-mode-hook 'my/-bibtex-setup-indent) (define-key bibtex-mode-map (kbd "RET") 'newline-and-indent) (define-key bibtex-mode-map (kbd "TAB") 'my/bibtex-indent-or-find-text)