summaryrefslogtreecommitdiff
path: root/home-configuration.scm
diff options
context:
space:
mode:
authorMarek Paśnikowski <marek@marekpasnikowski.pl>2024-01-14 09:51:16 +0100
committerMarek Paśnikowski <marek@marekpasnikowski.pl>2024-01-14 09:51:16 +0100
commitbc88cebdf3337b74521e0e5b093d4bb1e5c060a6 (patch)
tree3e922a8d3826d2ee9412688da79aeed645e10504 /home-configuration.scm
parent38a87de2d6d1f71530c8590d2ae9db5d142f8e6f (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.
Diffstat (limited to 'home-configuration.scm')
-rw-r--r--home-configuration.scm6
1 files changed, 5 insertions, 1 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 "&& ")