Setup `bug-reference-mode'

This commit is contained in:
Gerard Vermeulen 2024-05-07 10:15:30 +02:00
parent 2bfe874a65
commit 58929b05b9

View File

@ -648,6 +648,10 @@ for technical information.
#+caption: Window management variables. #+caption: Window management variables.
#+name: lst:3rd-window-management #+name: lst:3rd-window-management
#+begin_src emacs-lisp -n :results none #+begin_src emacs-lisp -n :results none
(defvar bug-reference-url-format
"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=%s"
"Setting this as a file local variable enables `bug-reference-mode'")
(with-eval-after-load 'emacs (with-eval-after-load 'emacs
;; https://www.masteringemacs.org/article/demystifying-emacs-window-manager ;; https://www.masteringemacs.org/article/demystifying-emacs-window-manager
(setopt switch-to-buffer-obey-display-actions t) (setopt switch-to-buffer-obey-display-actions t)
@ -7328,6 +7332,7 @@ Only the [[info:org#Top][Org]] source file shows the local variables footer.
# Emacs looks for "Local variables:" after the last "newline-formfeed". # Emacs looks for "Local variables:" after the last "newline-formfeed".
# Local Variables: # Local Variables:
# bug-reference-url-format: "https://debbugs.gnu.org/cgi/bugreport.cgi?bug=%s"
# compile-command: "latexmk -interaction=nonstopmode -lualatex -pvc -shell-escape README.tex" # compile-command: "latexmk -interaction=nonstopmode -lualatex -pvc -shell-escape README.tex"
# fill-column: 80 # fill-column: 80
# org-edit-src-content-indentation: 0 # org-edit-src-content-indentation: 0