Skip to content

Commit

Permalink
Enable goto-address-mode for text-mode
Browse files Browse the repository at this point in the history
Currently it's only enabled in prog-mode, which has missed out text-mode.
  • Loading branch information
xuhdev authored and smile13241324 committed Feb 19, 2025
1 parent 5be7667 commit 078a4f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layers/+spacemacs/spacemacs-defaults/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ It runs `tabulated-list-revert-hook', then calls `tabulated-list-print'."
;; Highlight and allow to open http link at point in programming buffers
;; goto-address-prog-mode only highlights links in strings and comments
(add-hook 'prog-mode-hook 'goto-address-prog-mode)
;; In text-mode, highlight with goto-address-mode
(add-hook 'text-mode-hook 'goto-address-mode)
;; Highlight and follow bug references in comments and strings
(add-hook 'prog-mode-hook 'bug-reference-prog-mode)

Expand Down

0 comments on commit 078a4f8

Please sign in to comment.