Compare commits
No commits in common. "52a7058da602748b5beb7c1ee6e8c7a67c512c6a" and "97ec0558dde788727ef9ba8ed7480d1653941821" have entirely different histories.
52a7058da6
...
97ec0558dd
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,4 +8,3 @@ bookmarks
|
||||
projectile-bookmarks.eld
|
||||
.org-id-locations
|
||||
org-roam.db
|
||||
lsp-cache/
|
@ -46,14 +46,13 @@
|
||||
;; Automcompletado
|
||||
(use-package company
|
||||
:defer t
|
||||
:init
|
||||
(global-company-mode)
|
||||
:config
|
||||
(global-company-mode)
|
||||
(setq company-dabbrev-downcase nil) ; autocompletado case-sensitive.
|
||||
(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-backends '((company-capf :with company-yasnippet)
|
||||
(company-files :with company-yasnippet)
|
||||
(setq company-backends '((company-files :with company-yasnippet)
|
||||
(company-capf :with company-yasnippet)
|
||||
(company-dabbrev-code company-ctags company-keywords :with company-yasnippet)
|
||||
(company-dabbrev :with company-yasnippet)))
|
||||
)
|
||||
@ -175,10 +174,9 @@
|
||||
;; Languaje server protocol
|
||||
(use-package lsp-mode
|
||||
:defer t
|
||||
;; :hook (js-mode . lsp-deferred)
|
||||
:custom
|
||||
(lsp-headerline-breadcrumb-enable nil)
|
||||
:config
|
||||
(setq lsp-completion-provider :none))
|
||||
(lsp-headerline-breadcrumb-enable nil))
|
||||
|
||||
;; Interface para lsp
|
||||
(use-package lsp-ui :defer t)
|
||||
@ -282,7 +280,7 @@
|
||||
:init
|
||||
(winner-mode 1))
|
||||
|
||||
;; Permitir snippets
|
||||
;;
|
||||
(use-package yasnippet
|
||||
:defer t
|
||||
:ensure t
|
||||
@ -294,9 +292,10 @@
|
||||
((prog-mode feature-mode) . yas-minor-mode-on)
|
||||
(html-mode . yas-minor-mode))
|
||||
|
||||
;; Coleción de snippets
|
||||
;;
|
||||
(use-package yasnippet-snippets :ensure t :defer t)
|
||||
|
||||
|
||||
;; Org-Mode
|
||||
(require 'org-config)
|
||||
|
||||
|
@ -38,10 +38,10 @@
|
||||
(global-set-key (kbd "C-x tp") 'multi-vterm-project)
|
||||
|
||||
;; Atajos de windmove
|
||||
(global-set-key (kbd "C-x <left>") 'windmove-left)
|
||||
(global-set-key (kbd "C-x <right>") 'windmove-right)
|
||||
(global-set-key (kbd "C-x <up>") 'windmove-up)
|
||||
(global-set-key (kbd "C-x <down>") 'windmove-down)
|
||||
(global-set-key (kbd "C-x C-<left>") 'windmove-left)
|
||||
(global-set-key (kbd "C-x C-<right>") 'windmove-right)
|
||||
(global-set-key (kbd "C-x C-<up>") 'windmove-up)
|
||||
(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)
|
||||
(global-set-key (kbd "C-x /") 'query-replace-regexp)
|
||||
|
@ -11,8 +11,7 @@
|
||||
;;; Code:
|
||||
|
||||
;; The default is 800 kilobytes. Measured in bytes.
|
||||
(setq gc-cons-threshold (* 50 1024 1024))
|
||||
(setq read-process-output-max (* 1024 1024))
|
||||
(setq gc-cons-threshold (* 50 1000 1000))
|
||||
|
||||
;; Native compilation
|
||||
(when (and (fboundp 'native-comp-available-p)
|
||||
@ -116,9 +115,11 @@
|
||||
;; Cerrar buffers al cerrar emacsclient
|
||||
(add-hook 'delete-frame-functions
|
||||
(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)
|
||||
(add-hook 'after-make-frame-functions
|
||||
|
@ -9,17 +9,13 @@
|
||||
|
||||
(use-package rust-mode
|
||||
:defer t
|
||||
:ensure t
|
||||
:config
|
||||
(setq rust-format-on-save t))
|
||||
:ensure t)
|
||||
|
||||
(use-package rustic
|
||||
:defer t
|
||||
:ensure t
|
||||
:config
|
||||
(setq rustic-lsp-server 'rls)
|
||||
(setq rustic-lsp-client 'lsp)
|
||||
;;(setq rustic-lsp-client nil)
|
||||
(setq rustic-lsp-client nil)
|
||||
(push 'rustic-clippy flycheck-checkers))
|
||||
|
||||
(provide 'lang-rust)
|
||||
|
Loading…
Reference in New Issue
Block a user