diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2015-10-16 10:28:38 -0400 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2015-10-16 10:28:38 -0400 |
commit | 431af7d6836fcb72f99d2fce6e8677e3ff48a648 (patch) | |
tree | dcea4da9af0d06f3795adbc08f13250700cfa187 /spacemacs | |
parent | 44cdd97db1609b77cbd0db33e4fbeaa72d804ae9 (diff) |
Add org-mode bindings.
Diffstat (limited to 'spacemacs')
-rw-r--r-- | spacemacs | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -211,6 +211,27 @@ user code." (backward-kill-word arg))) ) +(defun kj-bindings () + "Set up my custom bindings." + (evil-leader/set-key "on" #'nohlsearch) + (spacemacs/declare-prefix "or" "org") + (evil-leader/set-key "orl" #'org-store-link) + (evil-leader/set-key "ora" #'org-agenda) + (evil-leader/set-key "orc" #'org-capture) + ) + +(defun kj-org-config () + "Org configuration." + (setq-default + org-todo-keywords + '((sequence "TODO(t)" "WAIT(w@/!)" "|" "DONE(d!)" "CANCELED(c@)")) + org-directory "~/org" + org-log-done 'time + org-capture-templates + '(("t" "Todo" entry (file+headline "~/org/in.org" "Tasks") + "* TODO %?\n %i\n %a"))) + ) + (defun dotspacemacs/user-config () "Configuration function for user code. This function is called at the very end of Spacemacs initialization after @@ -220,6 +241,8 @@ layers configuration. You are free to put any user code." vc-follow-symlinks nil web-mode-code-indent-offset 2) (nyan-mode) + (kj-bindings) + (kj-org-config) (load-file "~/.spacemacs.local") ) ;; Do not write anything past this comment. This is where Emacs will |