From e0ad37a42d8b1b79393526f52441e3201c044e9b Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 2 Sep 2020 15:52:01 -0700 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20start=20an=20alternative=20edit?= =?UTF-8?q?or?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sometimes I’m too impatient and will try to start ‘emacsclient’ before the server has finished starting up. This means that it will start another Emacs session and it won’t be obvious to me. Now it’ll just fail to start ‘emacsclient’ and I can try again a few seconds later. --- herbstluftwm/.config/herbstluftwm/autostart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/herbstluftwm/.config/herbstluftwm/autostart b/herbstluftwm/.config/herbstluftwm/autostart index f3c8247..6edbc5a 100755 --- a/herbstluftwm/.config/herbstluftwm/autostart +++ b/herbstluftwm/.config/herbstluftwm/autostart @@ -73,8 +73,7 @@ hc keybind $Mod-c spawn hlwm-run-or-raise '\(URxvt\|Hyper\|kitty\)' kitty hc keybind $Mod-b spawn hlwm-run-or-raise '\(Conkeror\|[Ff]irefox\|Chromium\)' firefox # Switch to a running instance of Emacs, or create an Emacs client # frame. Start an Emacs daemon if necessary. -hc keybind $Mod-t spawn hlwm-run-or-raise Emacs \ - emacsclient --create-frame --alternate-editor='' +hc keybind $Mod-t spawn hlwm-run-or-raise Emacs emacsclient --create-frame # Lock the screen with C-M-l. hc keybind Control-Mod1-l spawn i3lock --color 000000 # Swap visible tags