commit f22b7ee03733f8113a9688d3b18eb2d96d7046f3
parent 69afbb40d640282b6a3fe985ceea91cfba024584
Author: Anton Konyahin <me@konyahin.xyz>
Date: Mon, 12 Feb 2024 20:32:51 +0300
emacs: add mark task active function in todotxt
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
@@ -200,7 +200,13 @@
(interactive)
(knh/todotxt-add-text "+waiting"))
+(defun knh/todotxt-mark-active ()
+ "Add +active tag on task"
+ (interactive)
+ (knh/todotxt-add-text "+active"))
+
(define-key todotxt-mode-map (kbd "I") 'knh/todotxt-filter-out-all-lists)
(define-key todotxt-mode-map (kbd "T") 'knh/todotxt-move-to-todo)
(define-key todotxt-mode-map (kbd "M") 'knh/todotxt-move-to-maybe)
(define-key todotxt-mode-map (kbd "W") 'knh/todotxt-move-to-waiting)
+(define-key todotxt-mode-map (kbd "A") 'knh/todotxt-mark-active)