From 0311eeff0508dc982a0ccfb1d8779eb5698b8b68 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Mon, 1 Jun 2020 21:00:56 -0400 Subject: [PATCH] conditional set the editor to either emacsclient or emacsclient --- tridactyl/tridactylrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tridactyl/tridactylrc b/tridactyl/tridactylrc index 14fbc2e..e19f8d6 100644 --- a/tridactyl/tridactylrc +++ b/tridactyl/tridactylrc @@ -26,6 +26,8 @@ unbind bind h tabprev bind l tabnext +js tri.browserBg.runtime.getPlatformInfo().then(os=>{const editorcmd = os.os=="mac" ? "/usr/local/emacsclient" : "emacsclient"; tri.config.set("editorcmd", editorcmd)}) + " Better find. unbind bind / fillcmdline find