Compare commits

..

5 Commits

Author SHA1 Message Date
kj
be00c17615 More changes to try improve LSP. 2022-07-12 16:38:53 -04:00
kj
a6c1c113df Set shortcut for counsel-mark-ring. 2022-07-12 16:38:24 -04:00
kj
23b14da665 Set allways ensure for use package. 2022-07-12 16:37:53 -04:00
kj
fb41d46922 Uodate reame. 2022-07-12 16:37:40 -04:00
kj
9ee088a832 Add 2 ways to take code screenshots (maybe unnesearry, but why not). 2022-07-12 16:36:51 -04:00
7 changed files with 28 additions and 0 deletions

1
.gitignore vendored
View File

@ -19,3 +19,4 @@ var/
eclipse.jdt.ls/ eclipse.jdt.ls/
workspace/ workspace/
/.extension/ /.extension/
/diary

View File

@ -270,6 +270,10 @@
(setq mouse-wheel-progressive-speed nil) ; Deshabilita la velocidad progresiva del scroll (mientras más scroll haces, mas rápido va) (setq mouse-wheel-progressive-speed nil) ; Deshabilita la velocidad progresiva del scroll (mientras más scroll haces, mas rápido va)
) )
(use-package silicon
:ensure t
:straight (silicon :type git :host github :repo "iensu/silicon-el"))
(use-package tree-sitter (use-package tree-sitter
:defer t :defer t
:straight t :straight t

View File

@ -7,6 +7,18 @@
;;; Code: ;;; Code:
;; Crear captura SVG del frame atual. Fuente: https://www.reddit.com/r/emacs/comments/idz35e/emacs_27_can_take_svg_screenshots_of_itself/
(defun screenshot-svg ()
"Save a screenshot of the current frame as an SVG image.
Saves to a temp file and puts the filename in the kill ring."
(interactive)
(let* ((filename (make-temp-file "Emacs" nil ".svg"))
(data (x-export-frames nil 'svg)))
(with-temp-file filename
(insert data))
(kill-new filename)
(message filename)))
;; Comentar línea o región ;; Comentar línea o región
(defun comment-or-uncomment-region-or-line () (defun comment-or-uncomment-region-or-line ()
"Comments or uncomments the region or the current line if there's no active region." "Comments or uncomments the region or the current line if there's no active region."

View File

@ -58,6 +58,7 @@
("C-c c w" . counsel-colors-web) ("C-c c w" . counsel-colors-web)
("C-c c v" . counsel-set-variable) ("C-c c v" . counsel-set-variable)
("C-c c z" . counsel-fzf) ("C-c c z" . counsel-fzf)
("C-c <C-SPC>" . counsel-mark-ring)
:map ivy-minibuffer-map :map ivy-minibuffer-map
("C-w" . ivy-yank-word) ("C-w" . ivy-yank-word)

View File

@ -38,7 +38,10 @@
lsp-enable-file-watchers nil lsp-enable-file-watchers nil
lsp-enable-folding nil lsp-enable-folding nil
lsp-enable-links nil
lsp-enable-symbol-highlighting nil lsp-enable-symbol-highlighting nil
lsp-enable-semantic-highlighting nil
cls-sem-highlight-method nil
lsp-enable-text-document-color nil lsp-enable-text-document-color nil
lsp-lens-enable nil lsp-lens-enable nil
lsp-auto-guess-root t lsp-auto-guess-root t

View File

@ -48,6 +48,7 @@
;; Instalar use-package si no está instalado ;; Instalar use-package si no está instalado
(straight-use-package 'use-package) (straight-use-package 'use-package)
(setq use-package-always-ensure t)
;; Theme ;; Theme
(use-package dracula-theme (use-package dracula-theme

View File

@ -27,6 +27,11 @@ Algunos lenguajes, ya sea para hacer uso de flycheck, lsp o autocompletado, pued
- *GO*: Necesita etener instalado [go](https://go.dev/) para linter (gofmt) y [gopls](https://github.com/golang/tools/tree/master/gopls) para LSP. - *GO*: Necesita etener instalado [go](https://go.dev/) para linter (gofmt) y [gopls](https://github.com/golang/tools/tree/master/gopls) para LSP.
- *Rust*: Necesita clippy para flycheck y LSP. Pare este útimo igual es posible usar [rust-analyzer](https://rust-analyzer.github.io). - *Rust*: Necesita clippy para flycheck y LSP. Pare este útimo igual es posible usar [rust-analyzer](https://rust-analyzer.github.io).
Otros:
- Búsqueda: Requiere tener instalado ripgrep.
- Capturas: Requiere silicon para las capturas con silico y que la compilación sea con cairo para las capturas SVG.
## Usar el modo daemon ## Usar el modo daemon
El modo daemon permite a emacs cargar mucho más rápido, puesto que con ello evitas volver a cargar la configuración cada vez que abres un nuevo archivo. Si quieres aprender mas sobre esto, puedes revisarlo en la [documentación de emacs](https://www.emacswiki.org/emacs/EmacsAsDaemon). El modo daemon permite a emacs cargar mucho más rápido, puesto que con ello evitas volver a cargar la configuración cada vez que abres un nuevo archivo. Si quieres aprender mas sobre esto, puedes revisarlo en la [documentación de emacs](https://www.emacswiki.org/emacs/EmacsAsDaemon).
@ -44,6 +49,7 @@ Finalmente, para abrirlo, es necesaria la usar `emacsclient` en lugar de `emacs`
`sudo cp ~/.emacs.d/emacs-client-runner.sh /usr/local/bin/emacs` `sudo cp ~/.emacs.d/emacs-client-runner.sh /usr/local/bin/emacs`
**🔴 Advertencia:** Esto reemplazará emacs por emacsclient, si deseas usar emacs podrás hacerlo mediante: `/bin/emacs` **🔴 Advertencia:** Esto reemplazará emacs por emacsclient, si deseas usar emacs podrás hacerlo mediante: `/bin/emacs`
**🔴 Advertencia Otra vez:** Esto puede ser totalmente innecesario en versiones más recientes de emacs (emacs 29+).
**Extra:** Con este hack, para abrir emacs en modo terminal puedes ejecutar: `emacsclient -t`, `emacs -t` o `emacs -nw`. **Extra:** Con este hack, para abrir emacs en modo terminal puedes ejecutar: `emacsclient -t`, `emacs -t` o `emacs -nw`.