From 85a7edad9fe9aebc1d4ef494cc89626bffbeb3a0 Mon Sep 17 00:00:00 2001 From: dongkc Date: Sat, 22 Apr 2017 14:48:44 +0000 Subject: [PATCH] updated --- rc.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rc.lua b/rc.lua index ccd3960..20509d5 100644 --- a/rc.lua +++ b/rc.lua @@ -55,7 +55,7 @@ local function run_once(cmd_arr) end end -run_once({ "urxvtd", "unclutter -root" }) +run_once({ "urxvtd", "unclutter -root", "emacs --daemon"}) -- }}} -- {{{ Variable definitions @@ -64,7 +64,7 @@ local modkey = "Mod4" local altkey = "Mod1" local terminal = "urxvtc" or "xterm" local editor = os.getenv("EDITOR") or "nano" or "vi" -local gui_editor = "gvim" +local gui_editor = "emacs" local browser = "luakit" awful.util.terminal = terminal @@ -428,8 +428,10 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "v", function () awful.spawn("xsel -b | xsel") end), -- User programs - awful.key({ modkey }, "e", function () awful.spawn(gui_editor) end), awful.key({ modkey }, "q", function () awful.spawn(browser) end), + -- awful.key({ modkey }, "2", function () awful.spawn(gui_editor) end), + awful.key({ modkey }, "w", function () awful.spawn(terminal .. " -e emacs -nw -mm") end), + awful.key({ modkey }, "e", function () awful.spawn(terminal .. " -e ranger") end), -- Default --[[ Menubar