From 2373e6ec73643c2a8cded90ad3b4ad43f50b643a Mon Sep 17 00:00:00 2001 From: Inhji Date: Mon, 5 Feb 2024 22:53:37 +0100 Subject: [PATCH] add org-habit, add keybinding to F12 For agenda --- config/dot_config/doom/config.el | 4 ++++ config/dot_config/doom/config.org | 12 +++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/config/dot_config/doom/config.el b/config/dot_config/doom/config.el index f772326..78ea603 100644 --- a/config/dot_config/doom/config.el +++ b/config/dot_config/doom/config.el @@ -10,11 +10,15 @@ (setq shell-file-name (executable-find "bash")) +(map! "" #'org-agenda-list) + (setq display-line-numbers-type t) (setq doom-theme 'doom-one) (setq org-src-tab-acts-natively t) +(add-to-list 'org-modules 'org-habit) + (after! org (setq org-agenda-show-all-dates nil org-agenda-span 2 diff --git a/config/dot_config/doom/config.org b/config/dot_config/doom/config.org index 1ac67a0..8f8c5ad 100644 --- a/config/dot_config/doom/config.org +++ b/config/dot_config/doom/config.org @@ -6,6 +6,7 @@ * Table of contents :toc: - [[#notes][Notes]] - [[#config-basics][Config Basics]] +- [[#keybindings][Keybindings]] - [[#appearance][Appearance]] - [[#org-mode][Org Mode]] - [[#org-basics][Org Basics]] @@ -39,6 +40,12 @@ This codeblock should be the first in this file! (setq shell-file-name (executable-find "bash")) #+end_src +* Keybindings + +#+begin_src emacs-lisp +(map! "" #'org-agenda-list) +#+end_src + * Appearance #+begin_src emacs-lisp @@ -47,14 +54,17 @@ This codeblock should be the first in this file! #+end_src * Org Mode - ** Org Basics *** TAB uses the language's major-mode binding in code blocks #+begin_src emacs-lisp (setq org-src-tab-acts-natively t) #+end_src +*** Load org-modules +#+begin_src emacs-lisp +(add-to-list 'org-modules 'org-habit) +#+end_src ** Org Agenda To have a less overwhelming agenda, show only TODOs for today and tomorrow. DONE items are not interesting, so they are also hidden.