diff options
Diffstat (limited to '.emacs.d/modes')
-rw-r--r-- | .emacs.d/modes/init-evil-mode.el | 15 | ||||
-rw-r--r-- | .emacs.d/modes/init-org-mode.el | 27 |
2 files changed, 29 insertions, 13 deletions
diff --git a/.emacs.d/modes/init-evil-mode.el b/.emacs.d/modes/init-evil-mode.el index ee7983a..ba04ca5 100644 --- a/.emacs.d/modes/init-evil-mode.el +++ b/.emacs.d/modes/init-evil-mode.el @@ -3,11 +3,11 @@ :hook (evil-org-mode . (lambda () (setq evil-want-C-i-jump nil))) :init (setq evil-want-integration t + evil-want-C-u-scroll t + evil-wannt-fine-undo t evil-want-keybinding nil) :config (evil-set-leader 'normal ",") - (setq evil-want-C-u-scroll t) - (setq evil-want-fine-undo t) (evil-set-undo-system 'undo-tree) (evil-mode 1)) @@ -23,7 +23,14 @@ :config (evil-escape-mode) (setq-default - evil-escape-key-sequence "jk" - evil-escape-unordered-key-sequence t)) + evil-escape-delay 0.2 + evil-escape-key-sequence "jk" + evil-escape-unordered-key-sequence t)) + +(use-package evil-easymotion + :ensure t + :after (evil avy) + :config + (evilem-default-keybindings "SPC")) (provide 'init-evil-mode) diff --git a/.emacs.d/modes/init-org-mode.el b/.emacs.d/modes/init-org-mode.el index ca1be2a..a542b2c 100644 --- a/.emacs.d/modes/init-org-mode.el +++ b/.emacs.d/modes/init-org-mode.el @@ -1,5 +1,6 @@ (use-package org :after evil + :commands org-agenda :config (setq org-directory "~/notes/") (setq org-default-notes-file (concat org-directory "/inbox.org")) @@ -14,7 +15,7 @@ (setq org-agenda-start-on-weekday 0) (setq org-adapt-indentation nil) (setq org-return-follows-link t) - (setq org-log-done t) + (setq org-descriptive-links nil) (evil-define-key 'normal 'global (kbd "<leader>a") 'org-agenda (kbd "<leader>l") 'org-store-link @@ -22,28 +23,36 @@ (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 (setq org-todo-keywords - '((sequence "TODO" "|" "DONE" "CANCELED"))) + '((sequence "TODO" "NEXT" "WAITING" "SOMEDAY" "PROJECT" "|" "DONE" "CANCELED"))) + (setq org-log-done t) + + ; tags (setq org-tag-alist '((:startgroup . nil) ("work" . ?w) ("home" . ?h) ("errants" . ?e) (:endgroup . nil) ("@phone" . ?p))) - (setq org-icalendar-include-todo t) - (setq org-icalendar-combined-agenda-file "~/notes/org.ics") - (add-hook 'org-mode-hook - (lambda () - (add-hook 'after-save-hook 'org-icalendar-combine-agenda-files nil t)))) + ; org babel + (org-babel-do-load-languages + 'org-babel-load-languages + '((shell . t)))) (use-package evil-org :ensure t :after (org evil) :hook (org-mode . (lambda () (evil-org-mode))) - :config (evil-org-set-key-theme '(navigation insert textobjects additional calendar todo)) (require 'evil-org-agenda) - (evil-org-agenda-set-keys)) + (evil-org-agenda-set-keys) + (evil-define-key 'motion org-agenda-mode-map + (kbd "q") (lambda () + (interactive) + (org-save-all-org-buffers) + (org-agenda-quit)))) (provide 'init-org-mode) |