From e93bc7c8058c4f00219cf5fb85c7f2e4b01a43b6 Mon Sep 17 00:00:00 2001 From: Patrick Winter Date: Wed, 24 Oct 2018 21:43:09 +0200 Subject: [PATCH] Add keybinding to update taskwarrior buffer --- taskwarrior.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/taskwarrior.el b/taskwarrior.el index 7009917..995464e 100644 --- a/taskwarrior.el +++ b/taskwarrior.el @@ -27,6 +27,7 @@ (define-key taskwarrior-mode-map (kbd "n") 'next-line) (define-key taskwarrior-mode-map (kbd "j") 'next-line) (define-key taskwarrior-mode-map (kbd "q") 'quit-window) + (define-key taskwarrior-mode-map (kbd "u") 'taskwarrior-update-buffer) (define-key taskwarrior-mode-map (kbd "a") 'taskwarrior-add) (define-key taskwarrior-mode-map (kbd "p") 'taskwarrior-change-project)) @@ -82,6 +83,7 @@ the front and focus it. Otherwise, create one and load the data." (taskwarrior-update-buffer)) (defun taskwarrior-update-buffer () + (interactive) (let* ((buf (get-buffer-create "taskwarrior"))) (progn (switch-to-buffer buf)