Skip to content

Commit

Permalink
Fix bug-reference-mode settings for Emacs 28
Browse files Browse the repository at this point in the history
* .dir-locals.el (bug-reference-bug-regexp)
(bug-reference-url-format): Don't override Emacs 28's more general
DWIM initialization of these variables.  Add the missing first
subgroup to the suggested bug-reference-bug-regexp value to avoid a
warning in Emacs 28.
  • Loading branch information
basil-conto committed Sep 19, 2021
1 parent 9baa442 commit c9fdec4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .dir-locals.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
;;; For more information see (info "(emacs) Directory Variables")

((nil
(bug-reference-bug-regexp . "#\\(?2:[[:digit:]]+\\)")
(bug-reference-url-format . "https://github.com/abo-abo/swiper/issues/%s")
;; Emacs 28+ automatically sets up these `bug-reference-mode' variables
;; in a more general way, so setting them here is not future-proof. If
;; you still need these settings in older Emacs versions, you can add
;; them to your personal `.dir-locals-2.el' file in the meantime.
;; (bug-reference-bug-regexp . "\\(#\\([[:digit:]]+\\)\\)")
;; (bug-reference-url-format . "https://github.com/abo-abo/swiper/issues/%s")
(copyright-names-regexp . "Free Software Foundation, Inc\\.")
(sentence-end-double-space . t))
(emacs-lisp-mode
Expand Down

0 comments on commit c9fdec4

Please sign in to comment.