[Emacs] Set nil appropriatly in imalison:filter-agenda-log-to-completions-for

This commit is contained in:
Ivan Malison 2023-09-13 18:14:02 -06:00
parent c9edb55cd4
commit 03ddf1fcb0

View File

@ -316,6 +316,8 @@ We're going to use this to write separate parts of our config to different secti
(defun imalison:filter-agenda-log-to-completions-for (person)
(interactive (list (completing-read "Choose a person" imalison:org-people)))
(when (string-equal person "nil")
(setq person nil))
(setq imalison:org-agenda-filter-to person)
(when (eq major-mode 'org-agenda-mode)
(org-agenda-redo)))