add evil-collection keybindings to emacs

This commit is contained in:
Cyryl Płotnicki 2022-09-04 09:52:17 +01:00
parent 8ccdd94d0b
commit 1fc2ef3c05
2 changed files with 10 additions and 3 deletions

View file

@ -3,8 +3,12 @@ let
myEmacs = pkgs.emacs-nox;
inherit ((pkgs.emacsPackagesFor myEmacs)) emacsWithPackages;
in emacsWithPackages (epkgs:
(with epkgs.melpaStablePackages; [ magit solarized-theme evil ])
++ (with epkgs.melpaPackages; [ xterm-color nix-mode ])
(with epkgs.melpaStablePackages; [
magit
solarized-theme
evil
evil-collection
]) ++ (with epkgs.melpaPackages; [ xterm-color nix-mode ])
++ (with epkgs.elpaPackages; [
beacon # ; highlight my cursor when scrolling
nameless # ; hide current package name everywhere in elisp code

View file

@ -15,9 +15,12 @@
(set-terminal-parameter nil 'background-mode 'dark)
(xterm-mouse-mode 1)
(setq evil-want-integration t)
(setq evil-want-keybinding nil)
(require 'evil)
(when (require 'evil-collection nil t)
(evil-collection-init))
(evil-mode 1)
(setq custom-tab-width 2)
(setq indent-tabs-mode nil)