From f9ae5b0aa55ce4d66d24de60354f28d1faaf2cdc Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 24 Dec 2023 15:52:42 +0400 Subject: [PATCH] lamsdo --- config/emacs/emacs.org | 4 +--- config/emacs/init.el | 4 +--- hosts/sakowsl/configuration.nix | 1 + modules/dev/editors/emacs/default.nix | 3 ++- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org index 658a9130..d235de1f 100644 --- a/config/emacs/emacs.org +++ b/config/emacs/emacs.org @@ -1281,9 +1281,7 @@ only god knows why im doing this #+begin_src emacs-lisp ;; codeberg thingy (use-package visual-fill-column) - (use-package telega - :straight t - ) + (use-package telega) #+end_src ** pdf-tools Emacs can be everything? Why not turn it into a pdf reader diff --git a/config/emacs/init.el b/config/emacs/init.el index 9ac8a0d5..89a08e73 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -1062,9 +1062,7 @@ kept-old-versions 5) ;; codeberg thingy (use-package visual-fill-column) -(use-package telega - :straight t - ) +(use-package telega) (use-package pdf-tools :straight t diff --git a/hosts/sakowsl/configuration.nix b/hosts/sakowsl/configuration.nix index c39dc5dd..1823f891 100644 --- a/hosts/sakowsl/configuration.nix +++ b/hosts/sakowsl/configuration.nix @@ -95,6 +95,7 @@ editors = { nvim.enable = true; emacs.enable = true; + emacs.daemon = false; }; cc.enable = true; nil.enable = true; diff --git a/modules/dev/editors/emacs/default.nix b/modules/dev/editors/emacs/default.nix index f59dd3aa..456500b0 100644 --- a/modules/dev/editors/emacs/default.nix +++ b/modules/dev/editors/emacs/default.nix @@ -11,12 +11,13 @@ with lib; let in { options.modules.dev.editors.emacs = { enable = mkEnableOption false; + daemon = mkEnableOption true; }; config = mkIf cfg.enable { # ues daemon services.emacs = { - enable = true; + enable = cfg.daemon; install = true; package = pkgs.emacs29-pgtk; };