org: add layer variable for todo bindings

This commit is contained in:
Eivind Fonn 2017-06-21 12:56:44 +02:00
parent 4178a3de6e
commit 010164ce77
2 changed files with 7 additions and 1 deletions

View File

@ -11,6 +11,9 @@
;; Variables
(defvar org-want-todo-bindings nil
"If non-nil, evil-org's todo bindings are activated.")
(defvar org-enable-bootstrap-support nil
"If non-nil Twitter Bootstrap related packages are configured.")

View File

@ -54,7 +54,10 @@
:init
(progn
(add-hook 'org-mode-hook 'spacemacs//evil-org-mode)
(setq evil-org-key-theme '(textobjects navigation additional)))
(setq evil-org-key-theme `(textobjects
navigation
additional
,@(when org-want-todo-bindings '(todo)))))
:config
(spacemacs|diminish evil-org-mode "" " e")))