From 708a00fe72c3d996edd94fdf3048767ce08b73a9 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 25 May 2021 12:43:33 +0200 Subject: [PATCH] Set EDITOR to emacsclient. For magit. --- init.d/basics/global-variables.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.d/basics/global-variables.el b/init.d/basics/global-variables.el index d0e9b0f..01e014d 100644 --- a/init.d/basics/global-variables.el +++ b/init.d/basics/global-variables.el @@ -64,5 +64,10 @@ If t, run `whitespace-cleanup', `clang-format-buffer' and so on." multiplier))))) :hook (after-init . my/set-garbage-collection-threshold)) +(use-package with-editor + :after (server) + :config (progn + (setenv (with-editor-locate-emacsclient)))) + (provide 'basics/global-variables) ;;; global-variables.el ends here