evil stuff, keybinds

This commit is contained in:
Janis 2024-07-14 14:35:29 +02:00
parent ee66e7113a
commit 860e364ce9

View file

@ -23,6 +23,10 @@ These are some packages which I might want to use in the future, or maybe not, b
- https://github.com/rougier/svg-tag-mode - https://github.com/rougier/svg-tag-mode
create svg images to replace tokens based on regexes create svg images to replace tokens based on regexes
look at org-bullets to make a package which turns =--= and =---= into \em and \en.
** Links
https://emacs.stackexchange.com/questions/12383/how-to-unbind-a-key
* Start * Start
** Lexical Scoping ** Lexical Scoping
@ -371,6 +375,9 @@ Evil keybinds:
(evil-define-key 'normal 'global (kbd "<SPC>wk") 'evil-window-up) (evil-define-key 'normal 'global (kbd "<SPC>wk") 'evil-window-up)
(evil-define-key 'normal 'global (kbd "<SPC>wh") 'evil-window-left) (evil-define-key 'normal 'global (kbd "<SPC>wh") 'evil-window-left)
(evil-define-key 'normal 'global (kbd "<SPC>wl") 'evil-window-right) (evil-define-key 'normal 'global (kbd "<SPC>wl") 'evil-window-right)
;; magit
(evil-define-key 'normal 'global (kbd "<SPC>gs") 'magit-status)
; (evil-define-key 'normal 'global (kbd "<SPC>gd") 'magit-diff)
#+end_src #+end_src
Close =config=. Close =config=.
@ -385,6 +392,14 @@ Close =config=.
(global-evil-surround-mode 1)) (global-evil-surround-mode 1))
#+end_src #+end_src
#+begin_src emacs-lisp
(use-package evil-collection
:after evil
:defer t
:config
(evil-collection-init))
#+end_src
** undo-fu ** undo-fu
Also use undo-fu, which evil can use. Also use undo-fu, which evil can use.
#+begin_src emacs-lisp #+begin_src emacs-lisp