Function: goto-address-mode
goto-address-mode is an autoloaded, interactive and byte-compiled
function defined in goto-addr.el.gz.
Signature
(goto-address-mode &optional ARG)
Documentation
Minor mode to buttonize URLs and e-mail addresses in the current buffer.
This is a minor mode. If called interactively, toggle the
Goto-Address mode mode. If the prefix argument is positive, enable
the mode, and if it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the
mode if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate goto-address-mode(var)/goto-address-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Probably introduced at or before Emacs version 23.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/goto-addr.el.gz
;;;###autoload(put 'goto-address 'safe-local-eval-function t)
;;;###autoload
(define-minor-mode goto-address-mode
"Minor mode to buttonize URLs and e-mail addresses in the current buffer."
:lighter ""
(cond
(goto-address-mode
(jit-lock-register #'goto-address-fontify-region)
(add-hook 'context-menu-functions 'goto-address-context-menu 10 t))
(t
(jit-lock-unregister #'goto-address-fontify-region)
(save-restriction
(widen)
(goto-address-unfontify (point-min) (point-max)))
(remove-hook 'context-menu-functions 'goto-address-context-menu t))))