Skip to content

Instantly share code, notes, and snippets.

@seiji
Created January 15, 2012 06:19
Show Gist options
  • Save seiji/1614694 to your computer and use it in GitHub Desktop.
Save seiji/1614694 to your computer and use it in GitHub Desktop.
(add-hook 'markdown-mode-hook
'(lambda ()
(define-key markdown-mode-map "\C-c\C-h1" 'markdown-insert-header-1)
(define-key markdown-mode-map "\C-c\C-h2" 'markdown-insert-header-2)
(define-key markdown-mode-map "\C-c\C-h3" 'markdown-insert-header-3)
(define-key markdown-mode-map "\C-c\C-h4" 'markdown-insert-header-4)
(define-key markdown-mode-map "\C-c\C-h5" 'markdown-insert-header-5)
(define-key markdown-mode-map "\C-c\C-h6" 'markdown-insert-header-6)
(define-key markdown-mode-map "\C-c\C-hs" 'markdown-insert-section)
(define-key markdown-mode-map "\C-c\C-ht" 'markdown-insert-title)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment