Enable goto-address-mode' for org-mode-files'

This commit is contained in:
Gerard Vermeulen 2024-06-25 11:19:55 +02:00
parent cfc2551e6f
commit 7976866fea

View File

@ -4418,16 +4418,15 @@ wiki entry as the [[info:elisp#Edebug][Edebug (info)]] manual explains.
:CUSTOM_ID: sec:bug-reports
:END:
Listing [[lst:bug-reports]] ensures the installation of the =debbugs= extension
package to access the [[https://debbugs.gnu.org/][GNU Bug Tracker]] and sets up [[info:emacs#Bug Reference][Bug Reference Mode (info)]] to
access the [[https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs][bug-gnu-emacs]] mailing list.
Listing [[lst:bug-reports]] ensures the installation of the [[info:debbugs#Top][Debbugs (info)]] extension
package to access the [[https://debbugs.gnu.org/][GNU Bug Tracker]], sets up [[info:emacs#Bug Reference][Bug Reference Mode (info)]] to
access the [[https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs][bug-gnu-emacs]] mailing list, and enables [[info:emacs#Goto Address mode][Goto Address mode (info)]] to
open web links in source blocks.
#+caption[Setup reading existing bug reports]:
#+caption: Setup reading existing bug reports.
#+name: lst:bug-reports
#+begin_src emacs-lisp -n :results silent
;; (info "(debbugs) Top")
;; (info "(emacs) Bug Reference")
(ensure-package-installation 'debbugs)
(defvar bug-reference-url-format
@ -4437,8 +4436,7 @@ access the [[https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs][bug-gnu-emacs
(add-to-list 'safe-local-eval-forms '(bug-reference-mode +1))
(put 'bug-reference-mode 'safe-local-variable 'booleanp)
;; (info "(emacs) Goto Address mode")
(add-hook 'emacs-lisp-mode-hook #'goto-address-mode)
(add-hook 'org-mode-hook #'goto-address-mode)
#+end_src
*** [[http://yummymelon.com/devnull/writing-better-elisp-docstrings.html][Writing Better Elisp Docstrings]]