summaryrefslogtreecommitdiffstats
path: root/.config/emacs/jd-emacs/jd-emacs-keys.el
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2023-06-10 09:36:37 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2023-07-02 13:52:12 +0200
commitef565a486511cbbb86e0d1f80264b3b57d2ac88a (patch)
tree4e0b04e78f288985a629ad8b9a8e56eb266de6a4 /.config/emacs/jd-emacs/jd-emacs-keys.el
parent2b62ae597cc6a4c213f7d4b54b112ff9c216dbaa (diff)
downloaddotfiles-ef565a486511cbbb86e0d1f80264b3b57d2ac88a.tar.gz
dotfiles-ef565a486511cbbb86e0d1f80264b3b57d2ac88a.zip
Migrate from .org to .el Emacs config.
Diffstat (limited to '.config/emacs/jd-emacs/jd-emacs-keys.el')
-rw-r--r--.config/emacs/jd-emacs/jd-emacs-keys.el51
1 files changed, 51 insertions, 0 deletions
diff --git a/.config/emacs/jd-emacs/jd-emacs-keys.el b/.config/emacs/jd-emacs/jd-emacs-keys.el
new file mode 100644
index 0000000..cf7f06c
--- /dev/null
+++ b/.config/emacs/jd-emacs/jd-emacs-keys.el
@@ -0,0 +1,51 @@
1;;; Dotfiles --- Jakub Dlugosz emacs config
2;;; Commentary:
3
4;;; Code:
5
6(use-package general
7 :config
8 (general-create-definer jd/leader-key-def
9 :keymaps '(normal insert visual emacs)
10 :prefix "SPC"
11 :global-prefix "C-SPC")
12
13 (general-create-definer jd/ctrl-c-keys
14 :prefix "C-c"))
15
16(use-package undo-tree
17 :diminish
18 :config
19 (setq undo-tree-auto-save-history nil)
20 (global-undo-tree-mode 1))
21
22(use-package evil
23 :init
24 (setq evil-want-integration t)
25 (setq evil-want-keybinding nil)
26 (setq evil-want-C-u-scroll t)
27 (setq evil-want-Y-yank-to-eol t)
28 (setq evil-want-C-i-jump nil)
29 (setq evil-undo-system 'undo-tree)
30 (setq evil-kill-on-visual-paste nil)
31 :config
32 (evil-set-initial-state 'exwm-mode 'emacs)
33 (evil-mode 1))
34
35(use-package evil-collection
36 :after evil
37 :config
38 (evil-collection-init))
39
40(jd/leader-key-def
41 "w" 'evil-window-map
42 "wr" '(hydra-resize-window/body :which-key "Rezize window")
43 "wd" '(evil-window-delete :which-key "Window delete"))
44
45(jd/leader-key-def
46 "ou" '(undo-tree-visualize :which-key "Open"))
47
48;; remove . key
49(define-key evil-normal-state-map (kbd ".") '())
50
51;;; jd-keys.el ends here