From fe212583a1dd1ec90de3fdf045e6d967c1367395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20J=C3=B8rgensen?= Date: Fri, 14 Oct 2022 18:19:25 +0200 Subject: Emacs --- emacs/.emacs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'emacs/.emacs') diff --git a/emacs/.emacs b/emacs/.emacs index 5204914..a904029 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -16,6 +16,9 @@ ; (require 'evil-collection) ; (evil-collection-init) +(winner-mode 1) +(global-set-key (kbd "C-c u") #'winner-undo) + (global-set-key (kbd "C-c l") #'org-store-link) (global-set-key (kbd "C-c a") #'org-agenda) (global-set-key (kbd "C-c c") #'org-capture) @@ -39,6 +42,14 @@ (lambda () (evil-local-set-key 'normal (kbd "") 'org-cycle))) +;; Capture +(setq ord-default-notes-file "~/Common/org/todo.org") +(setq org-capture-templates + '(("l" "Linked todo" entry (file+headline "~/Common/org/todo.org" "Captures") + "* TODO %?\n %i \n %a") + ("t" "Todo" entry (file+headline "~/Common/org/todo.org" "Captures")) + )) + ;; Contact book (setq bbdb-file "~/Common/bbdb") (require 'bbdb) @@ -58,7 +69,8 @@ ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(custom-enabled-themes '(tango-dark)) - '(package-selected-packages '(bbdb haskell-mode evil))) + '(package-selected-packages '(bbdb haskell-mode evil)) + '(warning-suppress-types '((org)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. -- cgit v1.2.3