From 85e30973806b160e15dd629d8eb836b1728b40c3 Mon Sep 17 00:00:00 2001 From: Miranda Marquez Date: Tue, 4 Jun 2024 13:52:37 -0800 Subject: [PATCH] add emacs file, with its packages. kinda broken yet --- home.nix | 8 +------- modules/emacs.nix | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 modules/emacs.nix diff --git a/home.nix b/home.nix index f86e16f..70821ea 100644 --- a/home.nix +++ b/home.nix @@ -6,6 +6,7 @@ with lib.hm.gvariant; ./modules/dconf.nix ./modules/shell.nix ./modules/firefox.nix + # ./modules/emacs.nix ]; # Home Manager needs a bit of information about you and the # paths it should manage. @@ -35,13 +36,6 @@ with lib.hm.gvariant; # pyqt6 # # pyqt6-qt6 # pyqt6-sip])) - # (pkgs.emacsWithPackagesFromUsePackage { - # package = pkgs.emacs29-pgtk; - # config = ~/.emacs.d/init.el; - # extraEmacsPackages = epkgs: [ - # epkgs.dash; - # ] - # }) # pkgs.fetchFromGitHub ]; diff --git a/modules/emacs.nix b/modules/emacs.nix new file mode 100644 index 0000000..49db48a --- /dev/null +++ b/modules/emacs.nix @@ -0,0 +1,20 @@ +{ lib, config, pkgs, inputs, ... }: +{ + home.packages = [ + (pkgs.emacsWithPackages { + package = pkgs.emacs29; + # config = ~/.emacs.d/init.el; + extraEmacsPackages = epkgs: [ + epkgs.dash + epkgs.compat + epkgs.marginalia + epkgs.page-break-lines + epkgs.rainbow-mode + epkgs.powershell + epkgs.diminish + # epkgs.general + epkgs.eldoc + ]; + } +)]; +}