Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: provide option to disable link following #290

Closed
kenbarr1 opened this issue Nov 17, 2017 · 3 comments
Closed

Feature request: provide option to disable link following #290

kenbarr1 opened this issue Nov 17, 2017 · 3 comments

Comments

@kenbarr1
Copy link

It markdown-mode, hyperlinks are clickable/followable -- which can make it frustrating/difficult to edit files because the buffer changes whenever I click in the wrong place.

I have some workarounds, but it would be nice to expose this as an option that one could toggle.

Workaround:

; Turn off click-follows-link in Markdown mode.
(defun disable-goto-addr ()
  (setq-local mouse-1-click-follows-link nil)
  ; turn middle clicks into the default action, normally pasting the primary selection.
  (define-key markdown-mode-mouse-map [mouse-2] nil)
)
(add-hook 'markdown-mode-hook 'disable-goto-addr)
@jrblevin
Copy link
Owner

Thanks, I will make this a user-customizable option in the future.

@syohex
Copy link
Collaborator

syohex commented Jun 1, 2020

I have sent PR #500. How about it ?

@syohex
Copy link
Collaborator

syohex commented Jun 2, 2020

I have merged #500. Please check latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants