aboutsummaryrefslogtreecommitdiff
path: root/gui/conf
diff options
context:
space:
mode:
authorAdrian Kummerlaender2020-06-08 23:47:13 +0200
committerAdrian Kummerlaender2020-06-08 23:47:13 +0200
commit7dbe910f79c9a698c604a06f511f93882e08d076 (patch)
tree2b59cee502f1e5fbbc501b3d61c743d9c6893866 /gui/conf
parente0cdbe5b3e311346763a0571dd3e3cefcb0200ab (diff)
downloadnixos_home-7dbe910f79c9a698c604a06f511f93882e08d076.tar
nixos_home-7dbe910f79c9a698c604a06f511f93882e08d076.tar.gz
nixos_home-7dbe910f79c9a698c604a06f511f93882e08d076.tar.bz2
nixos_home-7dbe910f79c9a698c604a06f511f93882e08d076.tar.lz
nixos_home-7dbe910f79c9a698c604a06f511f93882e08d076.tar.xz
nixos_home-7dbe910f79c9a698c604a06f511f93882e08d076.tar.zst
nixos_home-7dbe910f79c9a698c604a06f511f93882e08d076.zip
Rewrite some Evil bindings in a more pleasant style
Diffstat (limited to 'gui/conf')
-rw-r--r--gui/conf/init.el14
1 files changed, 10 insertions, 4 deletions
diff --git a/gui/conf/init.el b/gui/conf/init.el
index 448a0d5..3142d00 100644
--- a/gui/conf/init.el
+++ b/gui/conf/init.el
@@ -58,6 +58,9 @@
(global-evil-leader-mode 1)
(evil-leader/set-leader ","))
+(evil-leader/set-key
+ "s" 'evil-ex-nohighlight)
+
(use-package darkroom
:ensure t
:config
@@ -146,10 +149,13 @@
(deft)
(evil-insert-state))
-(define-key evil-normal-state-map (kbd "C-b") 'ivy-switch-buffer)
-(define-key evil-normal-state-map (kbd "C-f") 'counsel-find-file)
-(define-key evil-normal-state-map (kbd "C-n") 'go-to-deft)
-(define-key evil-normal-state-map (kbd "M-<tab>") 'next-buffer)
+(evil-define-key 'normal 'global
+ "J" 'evil-forward-paragraph
+ "K" 'evil-backward-paragraph
+ (kbd "C-b") 'ivy-switch-buffer
+ (kbd "C-f") 'counsel-find-file
+ (kbd "C-n") 'go-to-deft
+ (kbd "M-<tab>") 'next-buffer)
(defun switch-to-last-buffer ()
(interactive)