2023-09-11 20:23:04 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2020-03-27 13:05:57 +01:00
|
|
|
with lib;
|
2023-09-11 20:23:04 +02:00
|
|
|
mkIf (elem "emacs::yasnippet" config.machine.pkgs) {
|
|
|
|
programs.emacs.init.usePackage = {
|
|
|
|
yasnippet = {
|
|
|
|
enable = true;
|
|
|
|
hook = ["(after-init . yas-global-mode)"];
|
|
|
|
# config = ''
|
2020-03-27 13:05:57 +01:00
|
|
|
|
2023-09-11 20:23:04 +02:00
|
|
|
# '';
|
|
|
|
};
|
|
|
|
yasnippet-snippets = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2020-03-27 13:05:57 +01:00
|
|
|
};
|
2023-09-11 20:23:04 +02:00
|
|
|
}
|