Compare commits

..

No commits in common. "52a7058da602748b5beb7c1ee6e8c7a67c512c6a" and "97ec0558dde788727ef9ba8ed7480d1653941821" have entirely different histories.

5 changed files with 21 additions and 26 deletions

1
.gitignore vendored
View File

@ -8,4 +8,3 @@ bookmarks
projectile-bookmarks.eld projectile-bookmarks.eld
.org-id-locations .org-id-locations
org-roam.db org-roam.db
lsp-cache/

View File

@ -46,14 +46,13 @@
;; Automcompletado ;; Automcompletado
(use-package company (use-package company
:defer t :defer t
:init
(global-company-mode)
:config :config
(global-company-mode)
(setq company-dabbrev-downcase nil) ; autocompletado case-sensitive. (setq company-dabbrev-downcase nil) ; autocompletado case-sensitive.
(setq company-idle-delay 0) ; mostrar autocompletado lo más rápido posible (setq company-idle-delay 0) ; mostrar autocompletado lo más rápido posible
(setq company-minimum-prefix-length 1) ; mostrar autocompletado desde que se coloca la primera letra. (setq company-minimum-prefix-length 1) ; mostrar autocompletado desde que se coloca la primera letra.
(setq company-backends '((company-capf :with company-yasnippet) (setq company-backends '((company-files :with company-yasnippet)
(company-files :with company-yasnippet) (company-capf :with company-yasnippet)
(company-dabbrev-code company-ctags company-keywords :with company-yasnippet) (company-dabbrev-code company-ctags company-keywords :with company-yasnippet)
(company-dabbrev :with company-yasnippet))) (company-dabbrev :with company-yasnippet)))
) )
@ -175,10 +174,9 @@
;; Languaje server protocol ;; Languaje server protocol
(use-package lsp-mode (use-package lsp-mode
:defer t :defer t
;; :hook (js-mode . lsp-deferred)
:custom :custom
(lsp-headerline-breadcrumb-enable nil) (lsp-headerline-breadcrumb-enable nil))
:config
(setq lsp-completion-provider :none))
;; Interface para lsp ;; Interface para lsp
(use-package lsp-ui :defer t) (use-package lsp-ui :defer t)
@ -282,7 +280,7 @@
:init :init
(winner-mode 1)) (winner-mode 1))
;; Permitir snippets ;;
(use-package yasnippet (use-package yasnippet
:defer t :defer t
:ensure t :ensure t
@ -294,9 +292,10 @@
((prog-mode feature-mode) . yas-minor-mode-on) ((prog-mode feature-mode) . yas-minor-mode-on)
(html-mode . yas-minor-mode)) (html-mode . yas-minor-mode))
;; Coleción de snippets ;;
(use-package yasnippet-snippets :ensure t :defer t) (use-package yasnippet-snippets :ensure t :defer t)
;; Org-Mode ;; Org-Mode
(require 'org-config) (require 'org-config)

View File

@ -38,10 +38,10 @@
(global-set-key (kbd "C-x tp") 'multi-vterm-project) (global-set-key (kbd "C-x tp") 'multi-vterm-project)
;; Atajos de windmove ;; Atajos de windmove
(global-set-key (kbd "C-x <left>") 'windmove-left) (global-set-key (kbd "C-x C-<left>") 'windmove-left)
(global-set-key (kbd "C-x <right>") 'windmove-right) (global-set-key (kbd "C-x C-<right>") 'windmove-right)
(global-set-key (kbd "C-x <up>") 'windmove-up) (global-set-key (kbd "C-x C-<up>") 'windmove-up)
(global-set-key (kbd "C-x <down>") 'windmove-down) (global-set-key (kbd "C-x C-<down>") 'windmove-down)
;; Atajos para reemplazar (los por fedecto no van bien para el teclado en español) ;; Atajos para reemplazar (los por fedecto no van bien para el teclado en español)
(global-set-key (kbd "C-x /") 'query-replace-regexp) (global-set-key (kbd "C-x /") 'query-replace-regexp)

View File

@ -11,8 +11,7 @@
;;; Code: ;;; Code:
;; The default is 800 kilobytes. Measured in bytes. ;; The default is 800 kilobytes. Measured in bytes.
(setq gc-cons-threshold (* 50 1024 1024)) (setq gc-cons-threshold (* 50 1000 1000))
(setq read-process-output-max (* 1024 1024))
;; Native compilation ;; Native compilation
(when (and (fboundp 'native-comp-available-p) (when (and (fboundp 'native-comp-available-p)
@ -116,9 +115,11 @@
;; Cerrar buffers al cerrar emacsclient ;; Cerrar buffers al cerrar emacsclient
(add-hook 'delete-frame-functions (add-hook 'delete-frame-functions
(lambda (frame) (lambda (frame)
(mapc 'kill-buffer (delq (get-buffer "*dashboard*") (buffer-list))) (let* ((window (frame-selected-window frame))
)) (buffer (and window (window-buffer window))))
) (when (and buffer (buffer-file-name buffer))
(kill-buffer buffer)))))
)
(if (daemonp) (if (daemonp)
(add-hook 'after-make-frame-functions (add-hook 'after-make-frame-functions

View File

@ -9,17 +9,13 @@
(use-package rust-mode (use-package rust-mode
:defer t :defer t
:ensure t :ensure t)
:config
(setq rust-format-on-save t))
(use-package rustic (use-package rustic
:defer t :defer t
:ensure t :ensure t
:config :config
(setq rustic-lsp-server 'rls) (setq rustic-lsp-client nil)
(setq rustic-lsp-client 'lsp)
;;(setq rustic-lsp-client nil)
(push 'rustic-clippy flycheck-checkers)) (push 'rustic-clippy flycheck-checkers))
(provide 'lang-rust) (provide 'lang-rust)