diff --git a/init.el b/init.el index 908db18..a276d83 100644 --- a/init.el +++ b/init.el @@ -643,29 +643,6 @@ :straight t :after magit) -(use-package yasnippet - :straight t - :diminish yas-minor-mode - :init - (use-package yasnippet-snippets :straight t :after yasnippet) - :hook ((prog-mode LaTeX-mode org-mode) . yas-minor-mode) - :bind - (:map yas-minor-mode-map ("C-c C-n" . yas-expand-from-trigger-key)) - (:map yas-keymap - (("TAB" . smarter-yas-expand-next-field) - ([(tab)] . smarter-yas-expand-next-field))) - :config - (yas-reload-all) - (defun smarter-yas-expand-next-field () - "Try to `yas-expand' then `yas-next-field' at current cursor position." - (interactive) - (let ((old-point (point)) - (old-tick (buffer-chars-modified-tick))) - (yas-expand) - (when (and (eq old-point (point)) - (eq old-tick (buffer-chars-modified-tick))) - (ignore-errors (yas-next-field)))))) - (use-package eglot :straight nil :config