Skip to content
Browse files

setup org-mode and remember for note taking and todos

  • Loading branch information...
1 parent 13d50a9 commit f82fe2e11c4a31348f86d3b7cb47cc606c99e450 @jimeh committed
Showing with 42 additions and 1 deletion.
  1. +1 −1 init.el
  2. +8 −0 keybindings.el
  3. +33 −0 remember.el
View
2 init.el
@@ -7,7 +7,7 @@
(load-file "~/.emacs.d/vendor.el")
(load-file "~/.emacs.d/appearance.el")
(load-file "~/.emacs.d/keybindings.el")
-
+(load-file "~/.emacs.d/remember.el")
(setq-default tab-width 2)
(setq-default indent-tabs-mode nil)
View
8 keybindings.el
@@ -70,6 +70,14 @@
(global-set-key (kbd "M-j") 'windmove-left)
(global-set-key (kbd "M-l") 'windmove-right)
+;; Org-mode
+(define-key global-map (kbd "C-c a") 'org-agenda)
+(define-key global-map (kbd "C-c l") 'org-store-link)
+
+;; Remember mode
+(define-key global-map (kbd "C-c r") 'org-remember)
+(define-key global-map (kbd "C-M-r") 'org-remember)
+
;; ElScreen related shortcuts
(when (require 'elscreen nil 'noerror)
(global-set-key (kbd "s-}") 'elscreen-next)
View
33 remember.el
@@ -0,0 +1,33 @@
+(require 'org-install)
+(require 'remember)
+
+(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
+
+;; Remember mode configuration.
+(setq remember-annotation-functions '(org-remember-annotation))
+(setq remember-handler-functions '(org-remember-handler))
+(add-hook 'remember-mode-hook 'org-remember-apply-template)
+
+;; Org-mode configuration
+(custom-set-variables
+ '(org-agenda-files (list "~/.org-files/todos.org"
+ "~/.org-files/notes.org"
+ "~/.org-files/events.org"))
+ '(org-directory "~/.org-files/")
+ '(org-default-notes-files "~/.org-files/notes.org")
+
+ '(org-log-done t)
+ '(org-agenda-ndays 7)
+ '(org-deadline-warning-days 14)
+ '(org-agenda-show-all-dates t)
+ '(org-agenda-skip-deadline-if-done t)
+ '(org-agenda-skip-scheduled-if-done t)
+ '(org-agenda-start-on-weekday nil)
+ '(org-reverse-note-order t)
+ '(org-fast-tag-selection-single-key (quote expert))
+ '(org-remember-store-without-prompt t)
+
+ ;; Remember templates.
+ '(org-remember-templates
+ '(("Todo" ?t "** TODO %?\n" "~/.org-files/todos.org" "Tasks")
+ ("Note" ?n "** %?\n" "~/.org-files/notes.org" "Notes"))))

0 comments on commit f82fe2e

Please sign in to comment.
Something went wrong with that request. Please try again.