1
0
mirror of https://github.com/sameer1612/.dotfiles.git synced 2025-02-22 19:38:57 +02:00

added replace with register support - WIP

This commit is contained in:
Sameer Kumar 2024-10-10 16:39:17 +05:30
parent df334dfb49
commit 2977f46f6b
2 changed files with 10 additions and 5 deletions

View File

@ -648,7 +648,6 @@
(eval-after-load 'js-mode
'(add-hook 'js-mode-hook #'add-node-modules-path)))
(load (locate-user-emacs-file "packages/evil.el"))
;;; RAINBOW DELIMITERS
;; The `rainbow-delimiters' package provides colorful parentheses, brackets, and braces
@ -794,6 +793,7 @@
;; Load the Catppuccin theme without prompting for confirmation.
(load-theme 'catppuccin :no-confirm))
(load (locate-user-emacs-file "packages/evil.el"))
;;; UTILITARY FUNCTION TO INSTALL EMACS-KICK
(defun ek/first-install ()

View File

@ -1,4 +1,3 @@
;; EVIL
(use-package evil
:ensure t
:defer t
@ -50,10 +49,9 @@
;; Project management keybindings
(evil-define-key 'normal 'global (kbd "<leader> p b") 'consult-project-buffer)
(evil-define-key 'normal 'global (kbd "<leader> p p") 'project-switch-project)
(evil-define-key 'normal 'global (kbd "<leader> p f") 'project-find-file)
(evil-define-key 'normal 'global (kbd "<leader> p g") 'project-find-regexp)
(evil-define-key 'normal 'global (kbd "<leader> p k") 'project-kill-buffers)
(evil-define-key 'normal 'global (kbd "<leader> p D") 'project-dired)
(evil-define-key 'normal 'global (kbd "<leader> p d") 'project-dired)
;; Yank from kill ring
(evil-define-key 'normal 'global (kbd "P") 'consult-yank-from-kill-ring)
@ -124,7 +122,6 @@
(evil-mode 1))
;; EVIL COLLECTION
(use-package evil-collection
:after evil
:defer t
@ -133,3 +130,11 @@
(evil-mode . evil-collection-init)
:config
(evil-collection-init))
(use-package evil-replace-with-register
:after evil-collection
:defer t
:ensure t
:config
(setq evil-replace-with-register-key (kbd "gr"))
(evil-replace-with-register-install))