Migrate from straight.el to elpaca.
Idk why, I only can try it. For now the emacs-init-time whas improved.
This commit is contained in:
@ -17,7 +17,6 @@
|
||||
;; Intercamiar buffers de lugar
|
||||
(use-package buffer-move
|
||||
:defer t
|
||||
:straight t
|
||||
:bind (("M-S-<up>" . buf-move-up)
|
||||
("M-S-<down>" . buf-move-down)
|
||||
("M-S-<left>" . buf-move-left)
|
||||
@ -26,19 +25,16 @@
|
||||
|
||||
;; Mostrar la ayuda de eldoc/documentación en un childframe
|
||||
(use-package eldoc-box
|
||||
:straight t
|
||||
:defer t
|
||||
:bind ("<f1>" . eldoc-box-help-at-point))
|
||||
|
||||
;; Seleccionar por regiones (similar a mark-sexp, pero toma en cuenta hacia atrás del cursor también)
|
||||
(use-package expand-region
|
||||
:straight t
|
||||
:defer t
|
||||
:bind ("C-+" . er/expand-region))
|
||||
|
||||
;; Major mode para archivos CSV
|
||||
(use-package csv-mode
|
||||
:straight t
|
||||
:defer t
|
||||
:hook ((csv-mode . csv-align-mode)
|
||||
(csv-mode . csv-header-line))
|
||||
@ -46,7 +42,6 @@
|
||||
|
||||
;; Un bonito y sencillo panel de inicio
|
||||
(use-package dashboard
|
||||
:straight t
|
||||
:defer t
|
||||
:init
|
||||
(dashboard-setup-startup-hook)
|
||||
@ -66,7 +61,6 @@
|
||||
|
||||
;; Sidebar a la derecha con los archivos
|
||||
(use-package dired-sidebar
|
||||
:straight t
|
||||
:defer t
|
||||
:hook (dired-mode . hl-line-mode)
|
||||
:ensure t
|
||||
@ -81,18 +75,16 @@
|
||||
;; Mover líneas o regiones
|
||||
(use-package drag-stuff
|
||||
:defer t
|
||||
:straight t
|
||||
:hook
|
||||
(after-init . drag-stuff-global-mode)
|
||||
(elpaca-after-init . drag-stuff-global-mode)
|
||||
:config
|
||||
(drag-stuff-define-keys))
|
||||
|
||||
;; La línea bonita esa de abajo
|
||||
(use-package doom-modeline
|
||||
:defer t
|
||||
:straight t
|
||||
:ensure t
|
||||
:hook (after-init . doom-modeline-mode)
|
||||
:hook (elpaca-after-init . doom-modeline-mode)
|
||||
:config
|
||||
(setq doom-modeline-project-detection 'auto
|
||||
doom-modeline-buffer-file-name-style 'relative-from-project
|
||||
@ -104,21 +96,19 @@
|
||||
;; Emparejamiento automático de comillas, paréntesis, corchetes y llaves
|
||||
(use-package electric-pair
|
||||
:defer t
|
||||
:straight (:type built-in)
|
||||
:hook (after-init . electric-pair-mode)
|
||||
:elpaca nil
|
||||
:hook (elpaca-after-init . electric-pair-mode)
|
||||
:config
|
||||
(setq electric-pair-delete-adjacent-pairs nil))
|
||||
|
||||
;; Git Gutter - Marca a la izq. si una linea ha sido agregada, editada o eliminada desde el último commit.
|
||||
(use-package git-gutter
|
||||
:defer t
|
||||
:straight t
|
||||
:hook
|
||||
(after-init . global-git-gutter-mode))
|
||||
(elpaca-after-init . global-git-gutter-mode))
|
||||
|
||||
;; Resalta los escapes de secuencia
|
||||
(use-package highlight-escape-sequences
|
||||
:straight t
|
||||
:defer t
|
||||
:hook (prog-mode . hes-mode)
|
||||
:config
|
||||
@ -141,7 +131,6 @@
|
||||
|
||||
;; Mostrar lo que se está presionando en pantalla
|
||||
(use-package keypression
|
||||
:straight t
|
||||
:defer t
|
||||
:config
|
||||
(setq keypression-use-child-frame t
|
||||
@ -157,23 +146,19 @@
|
||||
|
||||
;; Generador automatizado de archivos de licencia
|
||||
(use-package license-templates
|
||||
:straight t
|
||||
:defer t)
|
||||
|
||||
;; Magia para git
|
||||
(use-package magit
|
||||
:defer t
|
||||
:straight t)
|
||||
:defer t)
|
||||
|
||||
;; Modo markdown
|
||||
(use-package markdown-mode
|
||||
:defer t
|
||||
:straight t)
|
||||
:defer t)
|
||||
|
||||
;; Multiple vterm
|
||||
(use-package multi-vterm
|
||||
:defer t
|
||||
:straight t
|
||||
:bind* (("<f5>" . multi-vterm-dedicated-toggle)
|
||||
("C-x tt" . multi-vterm-dedicated-toggle)
|
||||
("C-x tf" . multi-vterm)
|
||||
@ -184,19 +169,16 @@
|
||||
|
||||
;; Iconos bonitos para varias cosas
|
||||
(use-package nerd-icons
|
||||
:straight t
|
||||
:defer t)
|
||||
|
||||
;; Usar nerd-icons en dired
|
||||
(use-package nerd-icons-dired
|
||||
:straight t
|
||||
:defer t
|
||||
:hook (dired-mode . nerd-icons-dired-mode))
|
||||
|
||||
;; Mecanografía
|
||||
(use-package speed-type
|
||||
:defer t
|
||||
:straight t
|
||||
:diminish
|
||||
:config
|
||||
(setq speed-type-gb-book-list '(66867 66866 66591 57303)
|
||||
@ -205,13 +187,11 @@
|
||||
|
||||
;; Des-minifica / ordena el código
|
||||
(use-package prettier
|
||||
:defer t
|
||||
:straight t)
|
||||
:defer t)
|
||||
|
||||
;; Paquete para manejo de proyectos
|
||||
(use-package projectile
|
||||
:defer t
|
||||
:straight t
|
||||
:bind ("C-c p" . projectile-command-map)
|
||||
:diminish projectile-mode
|
||||
:custom ((projectile-completion-system 'ivy))
|
||||
@ -260,7 +240,7 @@
|
||||
;; Recentf - Guarda registro de los archivos abiertos recientemente
|
||||
(use-package recentf
|
||||
:defer t
|
||||
:straight t
|
||||
:elpaca nil
|
||||
:bind ("C-x C-r" . recentf-open-files)
|
||||
:config
|
||||
(setq recentf-save-file
|
||||
@ -270,9 +250,8 @@
|
||||
;; Busqueda rápida con ripgrep
|
||||
(use-package rg
|
||||
:defer t
|
||||
:straight t
|
||||
:defines projectile-command-map
|
||||
:hook (after-init . rg-enable-default-bindings)
|
||||
:hook (elpaca-after-init . rg-enable-default-bindings)
|
||||
:bind (:map rg-global-map
|
||||
("c" . rg-dwim-current-dir)
|
||||
("f" . rg-dwim-current-file)
|
||||
@ -287,8 +266,8 @@
|
||||
|
||||
;; Guardar la posición del cursor en un archivo para volver allí cuando se lo vuelva a abrir.
|
||||
(use-package saveplace
|
||||
:straight t
|
||||
:hook (after-init . save-place-mode)
|
||||
:elpaca nil
|
||||
:hook (elpaca-after-init . save-place-mode)
|
||||
:config
|
||||
(setq save-place-file (locate-user-emacs-file (concat temp-dir "/places"))))
|
||||
|
||||
@ -296,13 +275,12 @@
|
||||
(use-package silicon
|
||||
:ensure t
|
||||
:defer t
|
||||
:straight (silicon :type git :host github :repo "iensu/silicon-el"))
|
||||
:elpaca (:host github :repo "iensu/silicon-el"))
|
||||
|
||||
;; Mejorando el scroll
|
||||
(use-package smooth-scrolling
|
||||
:defer t
|
||||
:straight t
|
||||
:hook (after-init . smooth-scrolling-mode)
|
||||
:hook (elpaca-after-init . smooth-scrolling-mode)
|
||||
:config
|
||||
(setq mouse-wheel-scroll-amount
|
||||
'(8 ((shift) . 1) ((control) . nil))) ; Cambia el scroll a 8 líneas a la vez, 1 cuando se preciona SHIFT y saltos de página cuando presionas CTRL
|
||||
@ -312,8 +290,7 @@
|
||||
;; Ayuda a manipular los archivos con líneas demasiado largas
|
||||
(use-package so-long
|
||||
:defer t
|
||||
:straight (:type built-in)
|
||||
;; :hook (after-init . global-so-long-mode)
|
||||
:elpaca nil
|
||||
:bind (:map so-long-mode-map
|
||||
("C-s" . isearch-forward)
|
||||
("C-r" . isearch-backward))
|
||||
@ -332,7 +309,7 @@
|
||||
;; Tree-sitter :)
|
||||
(use-package treesit
|
||||
:defer t
|
||||
:straight (:type built-in)
|
||||
:elpaca nil
|
||||
:commands (treesit-install-language-grammar nf/treesit-install-all-languages)
|
||||
:config
|
||||
(setq treesit-language-source-alist
|
||||
@ -367,38 +344,37 @@
|
||||
|
||||
;; Cuando presionas enter en un bloque de comentario sigue el estilo del bloque.
|
||||
(use-package vs-comment-return
|
||||
:straight (vs-comment-return :type git :host github :repo "emacs-vs/vs-comment-return")
|
||||
:elpaca (:host github :repo "emacs-vs/vs-comment-return")
|
||||
:defer t
|
||||
:hook (prog-mode . vs-comment-return-mode)
|
||||
)
|
||||
|
||||
;; Mostrar el último commit que modificó la linea actual
|
||||
(use-package vc-msg
|
||||
:straight t
|
||||
:defer t
|
||||
:bind (("C-c v" . vc-msg-show)
|
||||
("C-c C-v" . vc-msg-show))
|
||||
)
|
||||
|
||||
;; Terminal
|
||||
(use-package vterm :ensure t :defer t :straight t)
|
||||
(use-package vterm
|
||||
:ensure t
|
||||
:defer t)
|
||||
|
||||
;; Cuando iniicias un atajo de teclas te muestra las posibilidades
|
||||
(use-package which-key
|
||||
:defer t
|
||||
:straight t
|
||||
:hook (after-init . which-key-mode))
|
||||
:hook (elpaca-after-init . which-key-mode))
|
||||
|
||||
;; Restaurar el estado de los frames
|
||||
(use-package winner
|
||||
:elpaca nil
|
||||
:defer t
|
||||
:straight t
|
||||
:hook (after-init . winner-mode))
|
||||
:hook (elpaca-after-init . winner-mode))
|
||||
|
||||
;; Emacs Start Up Profiler
|
||||
(use-package esup
|
||||
:ensure t
|
||||
:straight t)
|
||||
:defer t)
|
||||
|
||||
(provide 'init-packages)
|
||||
;;; init-packages.el ends here
|
||||
|
Reference in New Issue
Block a user