2023-09-11 20:23:04 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2019-11-17 23:13:50 +01:00
|
|
|
with lib;
|
2023-09-11 20:23:04 +02:00
|
|
|
mkIf (elem "emacs::flycheck" config.machine.pkgs) {
|
|
|
|
programs.emacs.init.usePackage.flycheck = {
|
|
|
|
enable = true;
|
|
|
|
command = ["global-flycheck-mode"];
|
|
|
|
defer = 1;
|
|
|
|
bind = {};
|
|
|
|
config = ''
|
|
|
|
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.emacs.init.usePackage.flycheck-haskell = {
|
|
|
|
enable = elem "emacs::haskell" config.machine.pkgs;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.emacs.init.usePackage.flycheck-mypy = {
|
|
|
|
enable = elem "emacs::elpy" config.machine.pkgs;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.emacs.init.usePackage.pylint = {
|
|
|
|
enable = elem "emacs::elpy" config.machine.pkgs;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.emacs.init.usePackage.flycheck-rust = {
|
|
|
|
enable = elem "emacs::rust" config.machine.pkgs;
|
|
|
|
};
|
|
|
|
}
|