diff options
author | Leon Rische <leon.rische@me.com> | 2020-02-23 12:27:57 +0100 |
---|---|---|
committer | Leon Rische <leon.rische@me.com> | 2020-02-23 12:27:57 +0100 |
commit | 520e2af688f816a3b291441f60904260f353e987 (patch) | |
tree | 0eb04c73bb0dbcd9c12d2fcee9031ff0193e7859 /org-fc-dashboard.el | |
parent | b5d880160cd0da5ec95abe72470d6ac36fef31bc (diff) |
Add revert command to dashboard
Diffstat (limited to 'org-fc-dashboard.el')
-rw-r--r-- | org-fc-dashboard.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/org-fc-dashboard.el b/org-fc-dashboard.el index 369eed4..16a6838 100644 --- a/org-fc-dashboard.el +++ b/org-fc-dashboard.el @@ -78,7 +78,8 @@ ;;; Main View ;; Based on `mu4e-main-view-real' -(defun org-fc-dashboard-view (_ignore-auto _noconfirm) +(defun org-fc-dashboard-view () + (interactive) (let* ((buf (get-buffer-create org-fc-dashboard-buffer-name)) (inhibit-read-only t) (cards-stats (org-fc-awk-stats-cards)) @@ -154,6 +155,7 @@ (let ((map (make-sparse-keymap))) (define-key map (kbd "r") 'org-fc-review-all) (define-key map (kbd "q") 'quit-window) + (define-key map (kbd "G") 'org-fc-dashboard-view) map)) (define-derived-mode org-fc-dashboard-mode special-mode "org-fc main" @@ -164,7 +166,7 @@ ;;;###autoload (defun org-fc-dashboard () (interactive) - (org-fc-dashboard-view nil nil) + (org-fc-dashboard-view) (switch-to-buffer org-fc-dashboard-buffer-name) (goto-char (point-min)) (org-fc-dashboard-mode)) |