Add setup of org-mode

This commit is contained in:
laurensmiers 2017-02-06 11:48:39 +01:00
parent de750b0101
commit 4df46ab42a

11
init.el
View file

@ -100,7 +100,7 @@
gdb-show-main t gdb-show-main t
) )
;; Package: clean-aindent-mode ;; Package: clean-aindent-mode --- clean auto-indent and backspace unindent
(require 'clean-aindent-mode) (require 'clean-aindent-mode)
(add-hook 'prog-mode-hook 'clean-aindent-mode) (add-hook 'prog-mode-hook 'clean-aindent-mode)
@ -145,6 +145,15 @@
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
) )
;; Package: org - personal info manager
(require 'org)
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
;; when ending TODO (C-C C-t) end with a note + timestamp
(setq org-log-done 'note)
;; Specify root dir to search for agenda files, TODOs, ...
(setq org-agenda-files '("~/org"))
;; Set 'M-g' to 'goto-line' ;; Set 'M-g' to 'goto-line'
(global-set-key (kbd "M-g") 'goto-line) (global-set-key (kbd "M-g") 'goto-line)