summaryrefslogtreecommitdiff
path: root/spacemacs
diff options
context:
space:
mode:
authorKjetil Orbekk <kjetil.orbekk@gmail.com>2015-10-16 10:28:38 -0400
committerKjetil Orbekk <kjetil.orbekk@gmail.com>2015-10-16 10:28:38 -0400
commit431af7d6836fcb72f99d2fce6e8677e3ff48a648 (patch)
treedcea4da9af0d06f3795adbc08f13250700cfa187 /spacemacs
parent44cdd97db1609b77cbd0db33e4fbeaa72d804ae9 (diff)
Add org-mode bindings.
Diffstat (limited to 'spacemacs')
-rw-r--r--spacemacs23
1 files changed, 23 insertions, 0 deletions
diff --git a/spacemacs b/spacemacs
index 703f9af..f32ef3d 100644
--- a/spacemacs
+++ b/spacemacs
@@ -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