aboutsummaryrefslogtreecommitdiff
path: root/emacs/init.org
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/init.org')
-rw-r--r--emacs/init.org25
1 files changed, 24 insertions, 1 deletions
diff --git a/emacs/init.org b/emacs/init.org
index 4444da9..a88e3fb 100644
--- a/emacs/init.org
+++ b/emacs/init.org
@@ -333,7 +333,7 @@ We catalans start our weeks on Monday.
Global key binding.
#+BEGIN_SRC elisp
- (global-set-key (kbd "C-c c") 'calendar)
+ (global-set-key (kbd "M-c") 'calendar)
#+END_SRC
Fix some stuff for evil mode.
@@ -1472,6 +1472,29 @@ The prefix for the different kinds of types being used.
(todo . "%c:%t%s")))
#+END_SRC
+Set up a key binding for org-agenda.
+
+#+BEGIN_SRC elisp
+(global-set-key (kbd "C-c a") 'org-agenda)
+#+END_SRC
+
+** Capture
+
+Set the default notes file and the key binding.
+
+#+BEGIN_SRC elisp
+(setq org-default-notes-file (concat org-directory "/notes.org"))
+(define-key global-map "\C-cc" 'org-capture)
+#+END_SRC
+
+And finally set =org-capture-templates=.
+
+#+BEGIN_SRC elisp
+(setq org-capture-templates
+ `(("t" "todo" entry (file "") "* TODO %?\n%U\n")
+ ("i" "idea" entry (file "") "* %? :IDEA:\n%U\n%a\n")))
+#+END_SRC
+
** Other
Insert a <kbd></kbd> value in org mode. See this [[http://emacs.stackexchange.com/questions/2206/i-want-to-have-the-kbd-tags-for-my-blog-written-in-org-mode][StackExchange answer]].