From bc88cebdf3337b74521e0e5b093d4bb1e5c060a6 Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Sun, 14 Jan 2024 09:51:16 +0100 Subject: Set emacsclient as the default editor Vim being the editor that pops on every git commit is a problem for me. My editor of choice is Emacs. The EDITOR variable is set to "emacsclient -nw" in order to use emacs whenever an editor is needed. --- home-configuration.scm | 6 +++++- izumi.org | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/home-configuration.scm b/home-configuration.scm index 86fb5d6..0bb7c22 100644 --- a/home-configuration.scm +++ b/home-configuration.scm @@ -141,7 +141,11 @@ ( list ".config/git/ignore" ;; https://github.com/github/gitignore/blob/main/Global/Emacs.gitignore - ( local-file "home-files/git-ignore.conf" ) ) ) )) + ( local-file "home-files/git-ignore.conf" ) ) ) ) + (simple-service + 'environment-variables + home-environment-variables-service-type + `(("EDITOR" . "emacsclient -nw")))) (list (let* ((and "&& ") diff --git a/izumi.org b/izumi.org index 0fd8277..0a9f776 100644 --- a/izumi.org +++ b/izumi.org @@ -774,7 +774,11 @@ #+BEGIN_SRC scheme (list <> - <>) + <> + (simple-service + 'environment-variables + home-environment-variables-service-type + `(("EDITOR" . "emacsclient -nw")))) #+END_SRC #+NAME: SHELLS -- cgit v1.2.3