Fix: Require org-habit
It would be optimal to avoid requiring it, but not worth the trouble.
This commit is contained in:
parent
974acb0f43
commit
9deec36458
1 changed files with 2 additions and 3 deletions
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
(require 'cl-lib)
|
||||
(require 'org)
|
||||
(require 'org-habit)
|
||||
(require 'seq)
|
||||
|
||||
(require 'dash)
|
||||
|
|
@ -252,9 +253,7 @@ Or, when possible, fix the problem."
|
|||
(cl-case symbol
|
||||
('done (unless org-done-keywords
|
||||
;; NOTE: This check needs to be done from within the Org buffer being checked.
|
||||
(error "Variable `org-done-keywords' is nil. Are you running this from an Org buffer?")))
|
||||
('habit (unless (featurep 'org-habit)
|
||||
(require 'org-habit))))))
|
||||
(error "Variable `org-done-keywords' is nil. Are you running this from an Org buffer?"))))))
|
||||
(cl-loop for elem in form
|
||||
if (consp elem)
|
||||
do (progn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue