summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authornoa@gaiwan.org2024-06-18 20:35:34 +0000
committernoa@gaiwan.org2024-06-18 20:35:34 +0000
commitd974e4a9b0f740baa695f307b256f2e2c7213803 (patch)
tree692078d2f8fd59c922490e129735e28d24bf9a01 /emacs
parent396c3304a8c83a41741dda11b18653f8f36c6501 (diff)
Properly highlight goto-address links on hover
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/emacs/init.el b/emacs/init.el
index f7cd0b4..5934c45 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -517,9 +517,9 @@ The misspelled word is taken from OVERLAY.  WORD is the corrected word."
 ;; Goto address mode makes urls and email address in a buffer clickable.  I want these clickable links to look like links, because that's what they are.  The two mouse face variables are what face is used on hover, which at the moment i ignore.  It might also be worth setting them to 'highlight.
 (setopt global-goto-address-mode t)
 (setopt goto-address-mail-face 'link)
-(setopt goto-address-mail-mouse-face 'link)
+(setopt goto-address-mail-mouse-face 'highlight)
 (setopt goto-address-url-face 'link)
-(setopt goto-address-url-mouse-face 'link)
+(setopt goto-address-url-mouse-face 'highlight)
 
 ;; Abbrev mode expands one string into another string.  I use it as a simple autocorrect mode.  If i misspell a word, i run C-x a i g which will prompt me for what to expand the previous word into.  I type the correct spelling, and whenever i make that mistake again, it will automatically be corrected.  It's important to be careful not to set something that could be a typo for two words though, because otherwise it gets even more annoying.  Luckily it's easy to update the abbrevs which are stored in ~/.config/emacs/abbrev_defs.  M-x list-abbrevs is also a nice command which shows all the saved abbrevs and how many times they've been expanded.
 (add-hook 'text-mode-hook #'abbrev-mode)