From 27f918b2e21ae8d2b9cf273e23c9a9a1eef0bdb8 Mon Sep 17 00:00:00 2001 From: pali112 Date: Mon, 13 Jan 2025 12:56:39 +0100 Subject: [PATCH] =?UTF-8?q?Dodana=20obs=C5=82uga=20snippets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.el | 12 ++++++++++++ snippets/python-mode/locv | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 snippets/python-mode/locv 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))