A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jrblevin/markdown-mode/issues/290 below:

provide option to disable link following · Issue #290 · jrblevin/markdown-mode · GitHub

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)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4