module-evil.el (2105B)
1 ;;; module-evil.el 2 3 ;; Author: Mark Feller <mark.feller@member.fsf.org> 4 5 ;; This file is not part of GNU Emacs. 6 7 ;; This file is free software; you can redistribute it and/or modify 8 ;; it under the terms of the GNU General Public License as published by 9 ;; the Free Software Foundation; either version 3, or (at your option) 10 ;; any later version. 11 12 ;; This file is distributed in the hope that it will be useful, 13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 ;; GNU General Public License for more details. 16 17 ;; You should have received a copy of the GNU General Public License 18 ;; along with this file. If not, see <http://www.gnu.org/licenses/>. 19 20 ;;; Commentary: 21 22 ;;; Code: 23 24 (use-package evil 25 :bind 26 (:map evil-normal-state-map ("C-u" . evil-scroll-up)) 27 (:map evil-visual-state-map ("C-u" . evil-scroll-up)) 28 (:map evil-insert-state-map ("C-u" . evil-scroll-up)) 29 30 :config 31 (setq evil-mode-line-format '(before . mode-line-front-space)) 32 (setq evil-echo-state nil) 33 (setq evil-esc-delay 0) 34 35 (evil-mode t)) 36 37 (use-package evil-goggles 38 :delight (evil-goggles-mode) 39 40 :config 41 (setq evil-goggles-pulse t) 42 (setq evil-goggles-blocking-duration 0.100) 43 (setq evil-goggles-async-duration 0.300) 44 45 (evil-goggles-mode t)) 46 47 (use-package evil-surround 48 :config (global-evil-surround-mode t)) 49 50 (use-package evil-commentary 51 :disabled 52 :delight (evil-commentary-mode) 53 :config (evil-commentary-mode t)) 54 55 (use-package evil-snipe 56 :disabled 57 :delight (evil-snipe-mode nil "snipe") 58 :config (evil-snipe-override-mode t)) 59 60 (use-package evil-org 61 :disabled 62 :delight (evil-org-mode) 63 64 :config 65 (require 'evil-org-agenda) 66 67 (add-hook 'org-mode-hook 'evil-org-mode) 68 69 (evil-org-agenda-set-keys) 70 (evil-org-set-key-theme '(textobjects 71 insert 72 navigation 73 additional 74 shift 75 todo 76 heading))) 77 78 (provide 'module-evil) 79 80 ;;; module-evil.el ends here