Using yasnippets in markdown mode.

I’ve found that when using markdown-mode yasnippets’s TAB completion doesn’t work. It’s just because TAB key is bind to markdown-cycle function. To change this behaviour I use the following snippet in my .emacs file:

;; This goes into my .emacs file
(defun markdown-unset-tab ()
  "markdown-mode-hook"
  (define-key markdown-mode-map (kbd "<tab>") nil))
(add-hook 'markdown-mode-hook '(lambda() (markdown-unset-tab)))

Now I can expand yasnippets using TAB inside markdown-mode.

blog comments powered by Disqus