From 7d0b38b7dab6e8ac4b2cd19540c31ef5d07476af Mon Sep 17 00:00:00 2001 From: sterni Date: Tue, 1 Mar 2022 18:56:58 +0100 Subject: [PATCH] feat(sterni/emacs): set up org-capture Change-Id: If98dbae0683fda40e47f5d5701fdf85580a831a8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5342 Reviewed-by: sterni Autosubmit: sterni Tested-by: BuildkiteCI --- users/sterni/emacs/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/users/sterni/emacs/init.el b/users/sterni/emacs/init.el index f6e6305e2..53ffc1693 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 "oa") 'org-agenda) + (evil-define-key 'normal 'global (kbd "oc") 'org-capture) ;; elfeed bindings for evil (can't use-package elfeed apparently) (evil-define-key 'normal 'global (kbd "ff") 'elfeed) (evil-define-key '(normal visual) elfeed-search-mode-map