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