Enable goto-address-prog-mode

So we can see web links easily and jump to the links with a mouse click
or a key binding.
This commit is contained in:
Tu Do 2015-03-29 19:24:59 +07:00 committed by syl20bnr
parent cf6f086e35
commit 61dce32ad6

View file

@ -99,6 +99,10 @@ It runs `tabulated-list-revert-hook', then calls `tabulated-list-print'."
;; Mouse cursor in terminal mode
(xterm-mouse-mode 1)
;; 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)
;; ---------------------------------------------------------------------------
;; Edit
;; ---------------------------------------------------------------------------