Posted By

masei on 10/09/10


Tagged

emacs org-mode


Versions (?)

toggle "org-agenda-include-todo"


 / Published in: Lisp
 

This is a way to toggle the todos without a deadline or date in the org-mode agenda views

  1. ;; This function makes it easier to toggle variables
  2. (defun toggle-variable (var)
  3. "toggles boolean variable"
  4. (interactive "vToggle variable: ")
  5. (set var (not (symbol-value var)))
  6. (message "%s set to %s" var (symbol-value var))
  7. )
  8. ;; toggle agenda view todos
  9. (defun toggle-agenda-include-all-todo()
  10. "toggle the truncate-lines variable between true and false"
  11. (interactive)
  12. (toggle-variable 'org-agenda-include-all-todo)
  13. (org-agenda-redo)
  14. )
  15. (global-set-key [f3] 'toggle-agenda-include-all-todo)
  16. ;;;

Report this snippet  

You need to login to post a comment.