diff options
| author | Craig Jennings <c@cjennings.net> | 2025-10-28 17:26:27 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-10-28 17:26:27 -0500 |
| commit | 5af4ba9c0f47099623994f69cf2edda80f12b5ce (patch) | |
| tree | 9e8aa32beb64bf589ee85c9736feec37bd3ddbce /modules | |
| parent | 0d43f19997e34ed776e9c21df7b841a6a7461f97 (diff) | |
refactor:prog-general: Simplify yasnippet configuration
Replace the `setq yas-snippet-dirs` with `list` function for better
readability and add `yas-reload-all` to ensure snippets are
reloaded. Remove `ivy-yasnippet` configuration as it is not
required.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/prog-general.el | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/prog-general.el b/modules/prog-general.el index 669922ef..d8d9627d 100644 --- a/modules/prog-general.el +++ b/modules/prog-general.el @@ -264,12 +264,8 @@ If no such file exists there, display a message." ("C-c s n" . yas-new-snippet) ("C-c s e" . yas-visit-snippet-file) :config - (setq yas-snippet-dirs '(snippets-dir))) - -(use-package ivy-yasnippet - :after yasnippet - :bind - ("C-c s i" . ivy-yasnippet)) + (setq yas-snippet-dirs (list snippets-dir)) + (yas-reload-all)) ;; --------------------- Display Color On Color Declaration -------------------- ;; display the actual color as highlight to color hex code |
