Mastodon Feed: Post

Mastodon Feed

Boosted by cwebber@social.coop ("Christine Lemmer-Webber"):
FoxFunction@tech.lgbt wrote:

Wrote myself a nice little emacs command to show my current tasks and added it as a hook to my after init hooks. :blobfoxaww:

Ignore the typo :neofox_blush_hide:

#emacs #lisp

; Show current tasks on startuo (defun current-tasks (yes)   "Yes or no dialogue for opening a buffer to the todo.org file."   (interactive     (list (y-or-n-p "Do you wish to see your current tasks? ")))     (when yes       (find-file "~/Documents/Org/todo.org"))) (add-hook 'after-init-hook   (lambda () (call-interactively 'current-tasks)))