Commit 04cb3af8 authored by Duncan Bayne's avatar Duncan Bayne

Getting rid of unused markdownify cruft.

parent 354de714
......@@ -238,8 +238,6 @@
(add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode))
(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)
......@@ -19,19 +19,9 @@
'(lambda (buf)
(if (and (buffer-file-name buf) (not (buffer-modified-p buf)))
(kill-buffer buf)))
(kill-buffer buf)))
(defun duncans_emacs:markdownify()
"Assume the buffer contains HTML, and convert it to Markdown. Assumes markdownify is installed."
(shell-command-on-region (point-min) (point-max) "markdownify" (current-buffer) t))
(defun duncans_emacs:markdown()
"Assume the buffer contains Markdown, and convert it to HTML. Assumes markdown is installed."
(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."
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