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)