Skip to content

Instantly share code, notes, and snippets.

@lamberta
Created April 16, 2010 05:33
Show Gist options
  • Save lamberta/368058 to your computer and use it in GitHub Desktop.
Save lamberta/368058 to your computer and use it in GitHub Desktop.
.emacs todo-list-mode startup
(add-to-list 'load-path "~/emacs/lisp/") ;my lisp dir
(autoload 'todo-list-mode "todo-list-mode") ;load when needed
;a simple function that opens the file,
;and switches to todo-list-mode.
(defun open-todo-list ()
(interactive)
(find-file "~/notes/TODO")
(todo-list-mode))
;then bind to control-f12 so i can call it with one keystroke
;this works well for me because i also bind calendar to f12
(global-set-key [C-f12] 'open-todo-list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment