modules(editors) : Add emacs
This commit is contained in:
parent
5766455c95
commit
4ebb3aaed1
7 changed files with 814 additions and 0 deletions
19
modules/home/editors/emacs/default.nix
Normal file
19
modules/home/editors/emacs/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.home.editors.emacs;
|
||||
in
|
||||
{
|
||||
options.modules.home.editors.emacs = {
|
||||
enable = mkEnableOption ''
|
||||
Enable emacs with my custom configurations
|
||||
'';
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.doom-emacs = {
|
||||
enable = true;
|
||||
doomPrivateDir = ./doom.d;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue