From 20f2705342e1c444bda1b4c9a2077408ae14389a Mon Sep 17 00:00:00 2001 From: gxlin Date: Tue, 6 Jul 2021 13:23:10 +0800 Subject: mutt is too hard to configure --- .emacs.d/init.el | 1 - .emacs.d/modes/init-org-mode.el | 11 +++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index df7a5c9..4f08fd7 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -52,7 +52,6 @@ (require 'init-lsp-mode) (require 'init-mu4e) -;; ledger-mode (use-package ledger-mode :mode (("\\.journal$" . ledger-mode)) :config diff --git a/.emacs.d/modes/init-org-mode.el b/.emacs.d/modes/init-org-mode.el index af03184..32bdc4f 100644 --- a/.emacs.d/modes/init-org-mode.el +++ b/.emacs.d/modes/init-org-mode.el @@ -31,7 +31,9 @@ (kbd "od") 'org-deadline (kbd "or") 'org-refile (kbd "oil") 'org-insert-link - (kbd "oih") 'org-insert-heading) + (kbd "oih") 'org-insert-heading + (kbd "oci") 'org-clock-in + (kbd "oco") 'org-clock-out) (setq org-tags-exclude-from-inheritance '("PROJECT")) @@ -65,7 +67,10 @@ ;; org babel (org-babel-do-load-languages 'org-babel-load-languages - '((shell . t)))) + '((shell . t))) + + ;; org-habit + (add-to-list 'org-modules 'org-habit t)) (use-package org-agenda :ensure nil @@ -74,6 +79,8 @@ :init (setq org-agenda-dim-blocked-tasks nil) (setq org-agenda-skip-deadline-prewarning-if-scheduled t) + + (setq org-deadline-warning-days 10) (setq org-agenda-compact-blocks t) (setq org-agenda-custom-commands -- cgit v1.2.3