From 505cbd9b9c24ec44273b140e95aca29f4a91cd3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Sun, 28 Aug 2022 18:02:16 +0200 Subject: Default evil to emacs Evil is a mode for editing and shall stay for text & prog modes --- config/doom/config.org | 14 +++++--------- config/doom/init.el | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) (limited to 'config') diff --git a/config/doom/config.org b/config/doom/config.org index 45d5fca..fb10ce4 100644 --- a/config/doom/config.org +++ b/config/doom/config.org @@ -30,6 +30,9 @@ numbers are disabled. For relative line numbers, set this to `relative'. (map! :leader :desc "M-x" "x" #'execute-extended-command ) +(after! evil + (setq evil-default-state 'emacs) + (set-evil-initial-state! '(prog-mode text-mode) 'normal)) #+end_src ** Package Manager Doom manages packages separately. Keep that file separate @@ -82,9 +85,7 @@ Because I always need help and it should come up quickly Shamelessly copied from https://tecosaur.github.io/emacs-config/#dictionary #+begin_src emacs-lisp (use-package! lexic - :commands lexic-search lexic-list-dictionary - :config - (set-evil-initial-state! 'lexic-mode 'emacs)) + :commands lexic-search lexic-list-dictionary) #+end_src #+begin_src emacs-lisp (defadvice! +lookup/dictionary-definition-lexic (identifier &optional arg) @@ -207,8 +208,6 @@ this new window. ** Feeds #+begin_src emacs-lisp (after! elfeed - (set-evil-initial-state! 'elfeed-search-mode 'emacs) - (set-evil-initial-state! 'elfeed-show-mode 'emacs) (setq elfeed-feeds '("https://sachachua.com/blog/feed" "http://www.howardism.org/index.xml" @@ -478,7 +477,6 @@ Emacs mode for managing ledger text files (use-package! calibredb :commands calibredb :config - (set-evil-initial-state! 'calibredb-search-mode 'emacs) (setq calibredb-root-dir "/run/media/titan/ext_backup/personal/Libros/CalibreManaged") (setq calibredb-db-dir (expand-file-name "metadata.db" calibredb-root-dir))) #+end_src @@ -531,7 +529,5 @@ Emacs mode for managing ledger text files #+end_src #+begin_src emacs-lisp -(use-package! mpc - :config - (set-evil-initial-state! 'mpc-mode 'emacs)) +(use-package! mpc) #+end_src diff --git a/config/doom/init.el b/config/doom/init.el index 6ed17e4..2bce639 100644 --- a/config/doom/init.el +++ b/config/doom/init.el @@ -185,7 +185,7 @@ ;;calendar ;;emms ;;everywhere ; *leave* Emacs!? You must be joking - ;;irc ; how neckbeards socialize + irc ; how neckbeards socialize rss ; emacs as an RSS reader ;;twitter ; twitter client https://twitter.com/vnought -- cgit v1.2.3