From ef565a486511cbbb86e0d1f80264b3b57d2ac88a Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Sat, 10 Jun 2023 09:36:37 +0200 Subject: Migrate from .org to .el Emacs config. --- .config/emacs/jd-emacs/jd-emacs-keys.el | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .config/emacs/jd-emacs/jd-emacs-keys.el (limited to '.config/emacs/jd-emacs/jd-emacs-keys.el') 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 @@ +;;; 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 -- cgit v1.2.3