Compare commits

..

No commits in common. "870e9a44ac4a9908f7fc5241224fd08ae2f00dbe" and "f48e74729994b406c77c192ea5188f3f128ae4da" have entirely different histories.

3 changed files with 14 additions and 27 deletions

View File

@ -1,16 +0,0 @@
;;-*-coding: utf-8;-*-
(define-abbrev-table 'web-mode-abbrev-table
'(
("doc" "<!DOCTYPE html>
<html>
<head>
<meta charset=\"UTF-8\"/>
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
<title>Document</title>
</head>
<body>
</body>
</html>" nil :count 7)
("doctype" "<!DOCTYPE html>" nil :count 0)
))

View File

@ -42,19 +42,15 @@
(use-package cape
:ensure (:host github :repo "minad/cape")
:after corfu
:bind (("C-c <SPC> f" . cape-file)
("C-c <SPC> l" . cape-line)
("C-c <SPC> _" . cape-tex))
:init
;; (advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
(advice-add #'eglot-completion-at-point :around #'cape-wrap-nonexclusive)
;; (add-to-list 'completion-at-point-functions #'cape-line) ;; Completar línea actual en función de lo que dice otras líneas de buffer.
;; (add-to-list 'completion-at-point-functions #'cape-tex) ;; Completar Latex (caracteres unicode).
(add-to-list 'completion-at-point-functions #'cape-dict) ;; Completar desde un diccionario (por defecto toma el de linux que está en /usr/share/dict/words).
(add-to-list 'completion-at-point-functions #'cape-dabbrev) ;; Completar desde otras la palabras del buffer.
(add-to-list 'completion-at-point-functions #'cape-file) ;; Completar rutas de archivos.
;; (add-to-list 'completion-at-point-functions #'cape-line) ;; Completar línea actual en función de lo que dice otras líneas de buffer.
(add-to-list 'completion-at-point-functions #'cape-abbrev) ;; Completar desde una abreviaciónes configuradas con add-global-abbrev (añadir abreviación global) o add-mode-abbrev (abreviación para el modo actual).
(add-to-list 'completion-at-point-functions #'cape-keyword) ;; Completar desde keyword del lenguaje.
(add-to-list 'completion-at-point-functions #'cape-dict) ;; Completar desde un diccionario (por defecto toma el de linux que está en /usr/share/dict/words).
(add-to-list 'completion-at-point-functions #'cape-tex) ;; Completar Latex (caracteres unicode).
)
;; Hacer que corfu funcione en la terminal

View File

@ -26,12 +26,19 @@
("C-x c a" . citre-ace-peek)
("C-x c u" . citre-update-this-tags-file))
:init
(setq citre-auto-enable-citre-mode-modes '(prog-mode)
citre-default-create-tags-file-location 'global-cache
citre-prompt-language-for-ctags-command t)
(require 'citre-config)
(setq citre-auto-enable-citre-mode-modes '(prog-mode))
:config
(with-no-warnings
(setq citre-default-create-tags-file-location 'global-cache
;; citre-ctags-program "/usr/bin/ctags"
;; citre-readtags-program "/usr/bin/readtags"
citre-use-project-root-when-creating-tags t
citre-prompt-language-for-ctags-command t)
(with-eval-after-load 'projectile
(setq citre-project-root-function #'projectile-project-root))
;; Integrate with `lsp-mode' and `eglot'
(define-advice xref--create-fetcher (:around (fn &rest args) fallback)
(let ((fetcher (apply fn args))