2023-09-11 20:23:04 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2023-06-16 23:59:53 +02:00
|
|
|
with lib;
|
2023-09-11 20:23:04 +02:00
|
|
|
mkIf (elem "emacs::php-mode" config.machine.pkgs) {
|
|
|
|
programs.emacs.init.usePackage = {
|
|
|
|
php-mode = {
|
|
|
|
enable = true;
|
|
|
|
hook =
|
|
|
|
lib.optional (elem "emacs::lsp" config.machine.pkgs)
|
|
|
|
''(typescript-mode . (lambda () (lsp)))'';
|
|
|
|
};
|
2023-09-02 17:24:35 +02:00
|
|
|
};
|
2023-09-11 20:23:04 +02:00
|
|
|
}
|