about summary refs log tree commit diff
path: root/users/sterni
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-03-01T17·56+0100
committerclbot <clbot@tvl.fyi>2022-03-01T18·13+0000
commit7d0b38b7dab6e8ac4b2cd19540c31ef5d07476af (patch)
tree2206dae88fecbe0b17f644337b85a13af4e98a5f /users/sterni
parent09553a52d127c2d667fafb82269fe1e7debbca8c (diff)
feat(sterni/emacs): set up org-capture r/3884
Change-Id: If98dbae0683fda40e47f5d5701fdf85580a831a8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5342
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/sterni')
-rw-r--r--users/sterni/emacs/init.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/users/sterni/emacs/init.el b/users/sterni/emacs/init.el
index f6e6305e23bd..53ffc1693683 100644
--- a/users/sterni/emacs/init.el
+++ b/users/sterni/emacs/init.el
@@ -99,7 +99,8 @@
 
 (let ((org-folder (concat (getenv "HOME") "/files/sync/org")))
   (setq org-agenda-files (directory-files-recursively org-folder "\\.org$")
-        initial-buffer-choice (concat org-folder "/inbox.org")))
+        org-default-notes-file (concat org-folder "/inbox.org")
+        initial-buffer-choice org-default-notes-file))
 
 ;;; Configure packages
 (require 'use-package)
@@ -159,6 +160,7 @@
       (display-fill-column-indicator-mode 'toggle)))
   ;; org-mode
   (evil-define-key 'normal 'global (kbd "<leader>oa") 'org-agenda)
+  (evil-define-key 'normal 'global (kbd "<leader>oc") 'org-capture)
   ;; elfeed bindings for evil (can't use-package elfeed apparently)
   (evil-define-key 'normal 'global (kbd "<leader>ff") 'elfeed)
   (evil-define-key '(normal visual) elfeed-search-mode-map