From 67812ca1bef896e547ce4e10c230bb025a6ce97b Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Sun, 12 Jul 2020 12:26:07 +0100 Subject: [PATCH] Add delete functionality for works on brain switch --- lib/fg42/brain-switch.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fg42/brain-switch.el b/lib/fg42/brain-switch.el index 36c1a3b..4daad67 100644 --- a/lib/fg42/brain-switch.el +++ b/lib/fg42/brain-switch.el @@ -127,9 +127,9 @@ CURRENT-WORK is the key that is considered to be the current work." (interactive (let* ((state (fg42/load-brain-state))) (list state - (completing-read "Work: " (fg42/brain-keys state) nil 'confirm)))) + (completing-read "Work: " (fg42/brain-keys state))))) (let ((buf (get-buffer-create (format "*%s-notes*" work))) - (entries (cadr (assoc (intern work) (fg42/-brain-entry-map state))))) + (entries (cadr (assoc work (fg42/-brain-entry-map state))))) (set-buffer buf) (erase-buffer) (mapcar (lambda (entry)