Commit f40d681a authored by Duncan Bayne's avatar Duncan Bayne

Now can convert from HTML->MD easily too.

parent f2b4fc9d
......@@ -231,6 +231,7 @@
(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
(global-set-key (kbd "C-x M-m") 'duncans_emacs:markdownify)
(global-set-key (kbd "C-x M-M") 'duncans_emacs:markdown)
;; edit as root
(defun sudo-edit (&optional arg)
......
......@@ -27,6 +27,11 @@
(interactive)
(shell-command-on-region (point-min) (point-max) "markdownify" (current-buffer) t))
(defun duncans_emacs:markdown()
"Run the current buffers contents through the markdown utility."
(interactive)
(shell-command-on-region (point-min) (point-max) "markdown" (current-buffer) t))
(defun duncans_emacs:add-to-load-path (path-list)
"Adds each path in path-list to the load path."
(mapcar
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment