diff options
author | Óscar Nájera <hi@oscarnajera.com> | 2022-08-28 18:02:16 +0200 |
---|---|---|
committer | Óscar Nájera <hi@oscarnajera.com> | 2022-08-28 18:39:44 +0200 |
commit | 505cbd9b9c24ec44273b140e95aca29f4a91cd3d (patch) | |
tree | 154ef362197a0010b0bee9c88d0bbb8f9f7db98d /config | |
parent | dabc8f3fdf0cf8daebd3b9b7accf518fdb71f6ef (diff) | |
download | dotfiles-505cbd9b9c24ec44273b140e95aca29f4a91cd3d.tar.gz dotfiles-505cbd9b9c24ec44273b140e95aca29f4a91cd3d.tar.bz2 dotfiles-505cbd9b9c24ec44273b140e95aca29f4a91cd3d.zip |
Default evil to emacs
Evil is a mode for editing and shall stay for text & prog modes
Diffstat (limited to 'config')
-rw-r--r-- | config/doom/config.org | 14 | ||||
-rw-r--r-- | config/doom/init.el | 2 |
2 files changed, 6 insertions, 10 deletions
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 |