From 6156f86dd5797de5ea4f912b70d38963c6cf4ad4 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Sun, 2 Jul 2023 15:07:07 +0200 Subject: New Emacs config and change location of Emacs home dir. --- .config/emacs/jd-emacs/jd-emacs-keys.el | 51 --------------------------------- 1 file changed, 51 deletions(-) delete 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 deleted file mode 100644 index cf7f06c..0000000 --- a/.config/emacs/jd-emacs/jd-emacs-keys.el +++ /dev/null @@ -1,51 +0,0 @@ -;;; 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