blob: cf7f06c3968a72bc20aba7eccabef4cd0bb2529b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
;;; Dotfiles --- Jakub Dlugosz emacs config
;;; Commentary:
;;; Code:
(use-package general
:config
(general-create-definer jd/leader-key-def
:keymaps '(normal insert visual emacs)
:prefix "SPC"
:global-prefix "C-SPC")
(general-create-definer jd/ctrl-c-keys
:prefix "C-c"))
(use-package undo-tree
:diminish
:config
(setq undo-tree-auto-save-history nil)
(global-undo-tree-mode 1))
(use-package evil
:init
(setq evil-want-integration t)
(setq evil-want-keybinding nil)
(setq evil-want-C-u-scroll t)
(setq evil-want-Y-yank-to-eol t)
(setq evil-want-C-i-jump nil)
(setq evil-undo-system 'undo-tree)
(setq evil-kill-on-visual-paste nil)
:config
(evil-set-initial-state 'exwm-mode 'emacs)
(evil-mode 1))
(use-package evil-collection
:after evil
:config
(evil-collection-init))
(jd/leader-key-def
"w" 'evil-window-map
"wr" '(hydra-resize-window/body :which-key "Rezize window")
"wd" '(evil-window-delete :which-key "Window delete"))
(jd/leader-key-def
"ou" '(undo-tree-visualize :which-key "Open"))
;; remove . key
(define-key evil-normal-state-map (kbd ".") '())
;;; jd-keys.el ends here
|