Skip to content

Instantly share code, notes, and snippets.

@edavis10
Created July 25, 2013 21:53
Show Gist options
  • Save edavis10/6084120 to your computer and use it in GitHub Desktop.
Save edavis10/6084120 to your computer and use it in GitHub Desktop.
Link markdown documents in emacs using markdown-mode.
(add-hook 'markdown-mode-hook
(lambda ()
;; Open org-mode style links, [[file:relative.md]]
(local-set-key (kbd "C-c C-o") 'org-open-at-point-global)))

This is a test link to a local file [[file:test.md]].

Markdown-mode supports [[Wiki]] style links automatically. Using the org-open-at-point-global function is what jumps to a new file/buffer based on where the point is.

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