Compare commits
5 Commits
97ec0558dd
...
52a7058da6
Author | SHA1 | Date | |
---|---|---|---|
52a7058da6 | |||
290243835f | |||
f75b9eda35 | |||
e98d12e7e8 | |||
0411b624da |
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ bookmarks
|
||||
projectile-bookmarks.eld
|
||||
.org-id-locations
|
||||
org-roam.db
|
||||
lsp-cache/
|
@ -46,13 +46,14 @@
|
||||
;; Automcompletado
|
||||
(use-package company
|
||||
:defer t
|
||||
:config
|
||||
:init
|
||||
(global-company-mode)
|
||||
:config
|
||||
(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-files :with company-yasnippet)
|
||||
(company-capf :with company-yasnippet)
|
||||
(setq company-backends '((company-capf :with company-yasnippet)
|
||||
(company-files :with company-yasnippet)
|
||||
(company-dabbrev-code company-ctags company-keywords :with company-yasnippet)
|
||||
(company-dabbrev :with company-yasnippet)))
|
||||
)
|
||||
@ -174,9 +175,10 @@
|
||||
;; Languaje server protocol
|
||||
(use-package lsp-mode
|
||||
:defer t
|
||||
;; :hook (js-mode . lsp-deferred)
|
||||
:custom
|
||||
(lsp-headerline-breadcrumb-enable nil))
|
||||
(lsp-headerline-breadcrumb-enable nil)
|
||||
:config
|
||||
(setq lsp-completion-provider :none))
|
||||
|
||||
;; Interface para lsp
|
||||
(use-package lsp-ui :defer t)
|
||||
@ -280,7 +282,7 @@
|
||||
:init
|
||||
(winner-mode 1))
|
||||
|
||||
;;
|
||||
;; Permitir snippets
|
||||
(use-package yasnippet
|
||||
:defer t
|
||||
:ensure t
|
||||
@ -292,10 +294,9 @@
|
||||
((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 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)
|
||||
(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)
|
||||
|
||||
;; 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,7 +11,8 @@
|
||||
;;; Code:
|
||||
|
||||
;; The default is 800 kilobytes. Measured in bytes.
|
||||
(setq gc-cons-threshold (* 50 1000 1000))
|
||||
(setq gc-cons-threshold (* 50 1024 1024))
|
||||
(setq read-process-output-max (* 1024 1024))
|
||||
|
||||
;; Native compilation
|
||||
(when (and (fboundp 'native-comp-available-p)
|
||||
@ -115,11 +116,9 @@
|
||||
;; Cerrar buffers al cerrar emacsclient
|
||||
(add-hook 'delete-frame-functions
|
||||
(lambda (frame)
|
||||
(let* ((window (frame-selected-window frame))
|
||||
(buffer (and window (window-buffer window))))
|
||||
(when (and buffer (buffer-file-name buffer))
|
||||
(kill-buffer buffer)))))
|
||||
)
|
||||
(mapc 'kill-buffer (delq (get-buffer "*dashboard*") (buffer-list)))
|
||||
))
|
||||
)
|
||||
|
||||
(if (daemonp)
|
||||
(add-hook 'after-make-frame-functions
|
||||
|
@ -9,13 +9,17 @@
|
||||
|
||||
(use-package rust-mode
|
||||
:defer t
|
||||
:ensure t)
|
||||
:ensure t
|
||||
:config
|
||||
(setq rust-format-on-save t))
|
||||
|
||||
(use-package rustic
|
||||
:defer t
|
||||
:ensure t
|
||||
:config
|
||||
(setq rustic-lsp-client nil)
|
||||
(setq rustic-lsp-server 'rls)
|
||||
(setq rustic-lsp-client 'lsp)
|
||||
;;(setq rustic-lsp-client nil)
|
||||
(push 'rustic-clippy flycheck-checkers))
|
||||
|
||||
(provide 'lang-rust)
|
||||
|
Loading…
Reference in New Issue
Block a user