Compare commits

...

3 Commits

Author SHA1 Message Date
KJ a980735bd8 Disable evil and try to use god-mode. 2024-04-26 03:37:09 -04:00
KJ b95c3258ab Add anzu package. 2024-04-26 03:36:07 -04:00
KJ e276cc0eec Inprove corfu key mapping.
Escape key now is not globally taken, tab do nothing and
also all keys only was triggered when the corfu pop is open.
2024-04-26 02:52:40 -04:00
3 changed files with 22 additions and 3 deletions

View File

@ -21,8 +21,10 @@
:includes (corfu-info corfu-history))
:hook ((elpaca-after-init . global-corfu-mode)
(corfu-mode . corfu-popupinfo-mode))
:bind (("<escape>" . corfu-quit)
("<SPC>" . corfu-insert-separator))
:bind (:map corfu-map
([tab] . nil)
("<escape>" . corfu-quit)
("<SPC>" . corfu-insert-separator))
:custom
(corfu-auto t)
:config

View File

@ -14,6 +14,12 @@
;;; Code:
;; Mejora del reemplazo
(use-package anzu
:defer t
:bind (([remap query-replace] . anzu-query-replace)
([remap query-replace-regexp] . anzu-query-replace-regexp)))
;; Intercamiar buffers de lugar
(use-package buffer-move
:defer t
@ -143,6 +149,17 @@
("SPC" git-gutter:toggle-popup-hunk))
)
;; God mode. Similar usar evil, pero con solo 2 modos
(use-package god-mode
:defer t
:bind
("<escape>" . god-mode-all)
:config
(defun my-god-mode-update-cursor-type ()
(setq cursor-type (if (or god-local-mode buffer-read-only) 'box 'bar)))
(add-hook 'post-command-hook #'my-god-mode-update-cursor-type))
;; Cliente LLM (ollama, chatgpt, gemini, etc.)
(use-package gptel
:defer t

View File

@ -23,7 +23,7 @@
(require 'init-corfu)
;; (require 'init-ctags)
(require 'init-minibuffer)
(require 'init-evil)
;; (require 'init-evil)
(require 'init-keys)
;; Lenguajes