Skip to content

Commit

Permalink
org: add drawer evil-surround pair
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBB committed Nov 6, 2015
1 parent 5e05b79 commit 3fb3877
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions layers/org/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
company-emoji
emoji-cheat-sheet-plus
(evil-org :location local)
evil-surround
gnuplot
htmlize
;; org is installed by `org-plus-contrib'
Expand Down Expand Up @@ -53,6 +54,14 @@
"O" 'evil-open-above)
(spacemacs|diminish evil-org-mode "" " e"))))

(defun org/post-init-evil-surround ()
(defun spacemacs/add-org-surrounds ()
(push '(?: . spacemacs//surround-drawer) evil-surround-pairs-alist))
(add-hook 'org-mode-hook 'spacemacs/add-org-surrounds)
(defun spacemacs//surround-drawer ()
(let ((dname (read-from-minibuffer "" "")))
(cons (format ":%s:" (or dname "")) ":END:"))))

(defun org/init-gnuplot ()
(use-package gnuplot
:defer t
Expand Down

0 comments on commit 3fb3877

Please sign in to comment.