Created
January 9, 2018 22:43
-
-
Save dustinlacewell-wk/a6ed63ccfa2cda816a27bc7de90d2bac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun org-todo-list-current-file (&optional arg) | |
"Like `org-todo-list', but using only the current buffer's file." | |
(interactive "P") | |
(let ((org-agenda-files (list (buffer-file-name (current-buffer))))) | |
(if (null (car org-agenda-files)) | |
(error "%s is not visiting a file" (buffer-name (current-buffer))) | |
(org-todo-list arg)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment