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/427 below:

Following wiki link in gfm-mode switches to markdown-mode · Issue #427 · jrblevin/markdown-mode · GitHub

The last thing markdown-follow-wiki-link does after opening the target file is to switch the buffer to markdown-mode. I'm not sure why this is necessary, as opposed to just leaving the buffer in whatever mode it ends up in after find-file, but it's awkward if you have .md files set up to open in gfm-mode rather than markdown-mode. If it is necessary to set the mode, could it detect the current mode in the buffer containing the link and use that rather than being hardcoded to markdown-mode?

Steps to Reproduce
  1. Configure .md files to open in gfm-mode: (add-to-list 'auto-mode-alist '("\\.md\\'" . gfm-mode)) .
  2. Open a .md file containing a wiki link.
  3. Follow the wiki link to another .md file.
  4. Observe that the opened file is now in markdown-mode, rather than gfm-mode as it is when opened directly with find-file.
Software Versions

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