diff options
author | Marek Paśnikowski <marek@marekpasnikowski.pl> | 2024-01-14 09:51:16 +0100 |
---|---|---|
committer | Marek Paśnikowski <marek@marekpasnikowski.pl> | 2024-01-14 09:51:16 +0100 |
commit | bc88cebdf3337b74521e0e5b093d4bb1e5c060a6 (patch) | |
tree | 3e922a8d3826d2ee9412688da79aeed645e10504 | |
parent | 38a87de2d6d1f71530c8590d2ae9db5d142f8e6f (diff) |
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.
-rw-r--r-- | home-configuration.scm | 6 | ||||
-rw-r--r-- | 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 "&& ") @@ -774,7 +774,11 @@ #+BEGIN_SRC scheme (list <<EMACS-HOME-PROFILE>> - <<HOME-FILES-SERVICE-TYPE>>) + <<HOME-FILES-SERVICE-TYPE>> + (simple-service + 'environment-variables + home-environment-variables-service-type + `(("EDITOR" . "emacsclient -nw")))) #+END_SRC #+NAME: SHELLS |