change keybindings for Emacs

This commit is contained in:
2020-05-19 00:12:47 +08:00
parent 4f61a1403d
commit 1ab4560cd6
3 changed files with 4 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ pravitekeys = awful.util.table.join(
awful.key({ modkey }, "e", awful.key({ modkey }, "e",
function () function ()
run_or_raise("emacs", {class = "Emacs"}) run_or_raise("emacsclient -a '' -c -n", {class = "Emacs"})
end), end),
awful.key({ modkey, "Shift" }, "e", awful.key({ modkey, "Shift" }, "e",

View File

@@ -335,8 +335,8 @@ globalkeys = awful.util.table.join(
awful.client.focus.bydirection("right") awful.client.focus.bydirection("right")
if client.focus then client.focus:raise() end if client.focus then client.focus:raise() end
end), end),
awful.key({ modkey, }, "w", function () awful.util.mymainmenu:show() end, -- awful.key({ modkey, }, "w", function () awful.util.mymainmenu:show() end,
{description = "show main menu", group = "awesome"}), -- {description = "show main menu", group = "awesome"}),
-- Layout manipulation -- Layout manipulation
awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end, awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end,

View File

@@ -36,3 +36,4 @@ fcitx -d
#sudo java -jar tcpspeed_client.jar -b & #sudo java -jar tcpspeed_client.jar -b &
#cd #cd
#sudo service shadowsocks.client start #sudo service shadowsocks.client start
emacs --daemon