Compare commits

..

2 Commits

Author SHA1 Message Date
kj
75cf33384c Remove duplicated code for startup optimization. 2023-03-24 15:49:28 -04:00
kj
575db84bb4 Arreglar keybinding
- M-y ahora ejecuta yank-pop en normal mode.
- C-p y C-n ya no están bindeaados a evil, funcionan normalmente.
2023-03-24 14:53:41 -04:00
3 changed files with 10 additions and 25 deletions

View File

@ -41,6 +41,13 @@
(evil-define-key vim-states 'global (kbd "C-r") 'rg) (evil-define-key vim-states 'global (kbd "C-r") 'rg)
(evil-define-key 'normal 'global (kbd "U") 'undo-redo) (evil-define-key 'normal 'global (kbd "U") 'undo-redo)
;; Arreglar yank-pop en normal mode
(evil-define-key 'normal 'global (kbd "M-y") 'counsel-yank-pop)
;; Re-bindear C-p y C-n a como es normalmente
(evil-define-key 'normal 'global (kbd "C-p") 'previous-line)
(evil-define-key 'normal 'global (kbd "C-n") 'next-line)
;; Navegación entre frames ;; Navegación entre frames
(evil-define-key 'motion 'global (kbd "<leader>wh") 'windmove-left) (evil-define-key 'motion 'global (kbd "<leader>wh") 'windmove-left)
(evil-define-key 'motion 'global (kbd "<leader>wj") 'windmove-down) (evil-define-key 'motion 'global (kbd "<leader>wj") 'windmove-down)

View File

@ -32,6 +32,9 @@
(add-hook 'after-init-hook #'restore-gc-cons-percentage-after-init) (add-hook 'after-init-hook #'restore-gc-cons-percentage-after-init)
(setq gc-cons-percentage (get 'gc-cons-percentage 'value-during-init)) (setq gc-cons-percentage (get 'gc-cons-percentage 'value-during-init))
;; Permitir solo la búsqueda de archivos case sentsitive.
(setq auto-mode-case-fold nil)
;; Recommended by ;; Recommended by
;; https://github.com/raxod502/straight.el#getting-started to prevent ;; https://github.com/raxod502/straight.el#getting-started to prevent
;; pacakge.el stepping on straight's toes. ;; pacakge.el stepping on straight's toes.

25
init.el
View File

@ -9,31 +9,6 @@
;;; Code: ;;; Code:
;; Mejorar el tiempo de carga
(setq auto-mode-case-fold nil)
(unless (or (daemonp) noninteractive)
(let ((old-file-name-handler-alist file-name-handler-alist))
;; If `file-name-handler-alist' is nil, no 256 colors in TUI
;; @see https://emacs-china.org/t/spacemacs-centaur-emacs/3802/839
(setq file-name-handler-alist
(unless (display-graphic-p)
'(("\\(?:\\.tzst\\|\\.zst\\|\\.dz\\|\\.txz\\|\\.xz\\|\\.lzma\\|\\.lz\\|\\.g?z\\|\\.\\(?:tgz\\|svgz\\|sifz\\)\\|\\.tbz2?\\|\\.bz2\\|\\.Z\\)\\(?:~\\|\\.~[-[:alnum:]:#@^._]+\\(?:~[[:digit:]]+\\)?~\\)?\\'" . jka-compr-handler))))
(add-hook 'emacs-startup-hook
(lambda ()
"Recover file name handlers."
(setq file-name-handler-alist
(delete-dups (append file-name-handler-alist
old-file-name-handler-alist)))))))
(setq gc-cons-threshold most-positive-fixnum
gc-cons-percentage 0.5)
(add-hook 'emacs-startup-hook
(lambda ()
"Recover GC values after startup."
(setq gc-cons-threshold 800000
gc-cons-percentage 0.1)))
;; Cargar configuraciones ;; Cargar configuraciones
(add-to-list 'load-path (concat user-emacs-directory "configs")) (add-to-list 'load-path (concat user-emacs-directory "configs"))