(todos-show): Ensure file is in todos-mode.
+2012-09-12 Stephen Berman <stephen.berman@gmx.net>
+
+ * calendar/todos.el (todos-list-categories): Fix typos.
+ (todos-show): Ensure file is in todos-mode.
+
2012-09-12 Stephen Berman <stephen.berman@gmx.net>
* calendar/todos.el (todos-header): Remove defvar.
(widen)
(goto-char (point-max))
(while (re-search-backward
- (concat "^" (regexp-quote (concat todo-prefix todo-category-beg))
+ (concat "^" (regexp-quote (concat todos-prefix todos-category-beg))
"\\(.*\\)\n")
(point-min) t)
(push (match-string-no-properties 1) categories)))))
(equal (expand-file-name todos-file-do) bufname)))
(find-file todos-file-do)
(todos-initial-setup))
+ (unless (eq major-mode 'todos-mode) (todos-mode))
(unless todos-categories
(setq todos-categories (todos-list-categories)))
;; (beginning-of-line)