]> code.delx.au - dotemacs/commitdiff
rebind M-{ and M-} to jump by blocks in markdown-mode, it has a weird definition...
authorJames Bunton <jamesbunton@delx.net.au>
Wed, 27 Jul 2016 23:36:16 +0000 (09:36 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Wed, 27 Jul 2016 23:37:46 +0000 (09:37 +1000)
lisp/my-file-modes.el

index c1719329567e7ca76cd1956d8bed6332816f688d..6dd150cea8ff1f48aedefc0663d92fe09f478940 100644 (file)
@@ -33,6 +33,8 @@
 (setq js2-highlight-external-variables nil)
 
 (require 'markdown-mode)
+(define-key markdown-mode-map (kbd "M-{") 'markdown-beginning-of-block)
+(define-key markdown-mode-map (kbd "M-}") 'markdown-end-of-block)
 (setq markdown-command "markdown_py -x markdown.extensions.smart_strong -x markdown.extensions.fenced_code -x markdown.extensions.nl2br")
 
 (require 'pkgbuild-mode)