Skip to content

Instantly share code, notes, and snippets.

@Anks
Created March 30, 2016 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Anks/fe14bb5b3c728741cd729b7f74aeb8f3 to your computer and use it in GitHub Desktop.
Save Anks/fe14bb5b3c728741cd729b7f74aeb8f3 to your computer and use it in GitHub Desktop.
org-mode setup
;;; Directory / File setup
(setq org-directory "~/Dropbox/org")
(setq org-default-notes-file "~/Dropbox/org/notes.org")
(setq org-archive-location "~/Dropbox/org/.archive")
(setq org-agenda-files (list org-directory))
;;; Configure org-capture
(setq org-capture-templates
'(("t" "Todo" entry (file+headline "~/Dropbox/org/notes.org" "Tasks")
"* TODO %?\n %i\n SCHEDULED %t")
("j" "Journal" entry (file+datetree "~/Dropbox/org/journal.org")
"* %?\nEntered on %U\n %i\n %a")))
;;; Key Bindings
(global-set-key "\C-cc" 'org-capture)
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment