From 80e7f23c879ced229ff53a62142b1f89d96a212b Mon Sep 17 00:00:00 2001 From: Tobias Ostner Date: Thu, 25 Jul 2024 10:51:10 +0200 Subject: [PATCH] Use emacs server and configure aliases and git --- nix/config/emacs/init.el | 5 +++++ nix/module/home-manager.nix | 2 ++ 2 files changed, 7 insertions(+) diff --git a/nix/config/emacs/init.el b/nix/config/emacs/init.el index c4d459d..8813bc7 100644 --- a/nix/config/emacs/init.el +++ b/nix/config/emacs/init.el @@ -515,6 +515,11 @@ :init (savehist-mode)) +(use-package server + :defer 2 + :config + (server-start)) + (use-package smartparens :hook ((prog-mode . smartparens-mode)) :bind diff --git a/nix/module/home-manager.nix b/nix/module/home-manager.nix index 6558650..21bc694 100644 --- a/nix/module/home-manager.nix +++ b/nix/module/home-manager.nix @@ -154,6 +154,7 @@ userName = "Tobias Ostner"; userEmail = email; extraConfig = { + core.editor = "emacsclient -c -a ''"; init.defaultBranch = "main"; pull.rebase = true; rebase.updateRefs = true; @@ -186,6 +187,7 @@ syntaxHighlighting.enable = true; shellAliases = { ls = "ls --color=auto -F"; + emacs = "emacsclient -c -a ''"; }; }; };