Add setup of org-mode
This commit is contained in:
parent
de750b0101
commit
4df46ab42a
1 changed files with 10 additions and 1 deletions
11
init.el
11
init.el
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue