diff options
author | gxlin <[email protected]> | 2021-05-15 19:34:11 +0800 |
---|---|---|
committer | gxlin <[email protected]> | 2021-05-23 20:59:42 +0800 |
commit | 6e95c977654e5e40ffa60b27fa9a31354a1f5997 (patch) | |
tree | eb862003417e8d88aa0f24b5b9313677a026463b /.emacs.d/modes | |
parent | c7d4dc60a1827ad2ef4748239fe4276140631848 (diff) | |
download | dotfiles-6e95c977654e5e40ffa60b27fa9a31354a1f5997.tar.gz dotfiles-6e95c977654e5e40ffa60b27fa9a31354a1f5997.tar.bz2 dotfiles-6e95c977654e5e40ffa60b27fa9a31354a1f5997.zip |
Add aria2 config
Diffstat (limited to '.emacs.d/modes')
-rw-r--r-- | .emacs.d/modes/init-evil-mode.el | 3 | ||||
-rw-r--r-- | .emacs.d/modes/init-org-mode.el | 26 |
2 files changed, 24 insertions, 5 deletions
diff --git a/.emacs.d/modes/init-evil-mode.el b/.emacs.d/modes/init-evil-mode.el index ba04ca5..bccbc87 100644 --- a/.emacs.d/modes/init-evil-mode.el +++ b/.emacs.d/modes/init-evil-mode.el @@ -5,7 +5,8 @@ (setq evil-want-integration t evil-want-C-u-scroll t evil-wannt-fine-undo t - evil-want-keybinding nil) + evil-want-keybinding nil + evil-disable-insert-state-bindings t) :config (evil-set-leader 'normal ",") (evil-set-undo-system 'undo-tree) diff --git a/.emacs.d/modes/init-org-mode.el b/.emacs.d/modes/init-org-mode.el index a542b2c..0644aa4 100644 --- a/.emacs.d/modes/init-org-mode.el +++ b/.emacs.d/modes/init-org-mode.el @@ -2,6 +2,7 @@ :after evil :commands org-agenda :config + (require 'org-tempo) (setq org-directory "~/notes/") (setq org-default-notes-file (concat org-directory "/inbox.org")) (setq org-capture-templates @@ -23,24 +24,41 @@ (evil-define-key 'normal org-mode-map (kbd "TAB") 'org-cycle (kbd "RET") 'org-open-at-point) - (setq org-agenda-skip-deadline-prewarning-if-scheduled t) - ; todo + ;; todo (setq org-todo-keywords '((sequence "TODO" "NEXT" "WAITING" "SOMEDAY" "PROJECT" "|" "DONE" "CANCELED"))) (setq org-log-done t) - ; tags + ;; tags (setq org-tag-alist '((:startgroup . nil) ("work" . ?w) ("home" . ?h) ("errants" . ?e) (:endgroup . nil) ("@phone" . ?p))) - ; org babel + ;; org babel (org-babel-do-load-languages 'org-babel-load-languages '((shell . t)))) +(use-package org-agenda + :ensure nil + :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 + '(("d" "Daily agenda and all TODOs" + ((tags "PRIORITY=\"A\"" + ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) + (org-agenda-overriding-header "High-priority unfinished tasks:"))) + (agenda "" ((org-agenda-ndays-to-span 1))) + (alltodo "" + ((org-agenda-skip-function '(or (org-agenda-skip-if nil '(scheduled deadline)))) + (org-agenda-overriding-header "All normal priority tasks:")))))))) + + (use-package evil-org :ensure t :after (org evil) |