diff --git a/init.el b/init.el index b9ec0da..ccc8e32 100644 --- a/init.el +++ b/init.el @@ -40,6 +40,7 @@ Missing packages are automatically installed." 'company 'jupyter 'treemacs + 'yasnippet 'winum 'lsp-treemacs) @@ -58,6 +59,15 @@ Missing packages are automatically installed." (winum-mode)) +(use-package yasnippet + :ensure t + :config + (yas-global-mode 1)) ;; Włącz YASnippet globalnie + (setq yas-snippet-dirs '("~/.emacs.d/snippets")) ;; Ścieżka do własnych snippetów + +(use-package yasnippet-snippets + :ensure t + :after yasnippet) ;; Wymaga załadowanego yasnippet @@ -261,6 +271,8 @@ Missing packages are automatically installed." (setq company-minimum-prefix-length 1) ;; Minimalna długość prefiksu dla podpowiedzi (setq company-selection-wrap-around t)) ;; Zawijanie w menu podpowiedzi + + ;; ---------------------------- ;; Magit i zarządzanie projektami ;; ---------------------------- diff --git a/snippets/python-mode/locv b/snippets/python-mode/locv new file mode 100644 index 0000000..20cf914 --- /dev/null +++ b/snippets/python-mode/locv @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: Location Vector +# key: locv +# -- +Location(Vector(0,0,0),(0,0,0))