summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-06-22 13:10:17 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-06-22 13:10:17 -0700
commit1f7d19ca4bc69ddf8c048cbb17146b3605b38d25 (patch)
tree7f53fc2c8dfdf8e11efe0e6780b02d6098d84a02 /.config
parent79958bb293fc9d987e1b83ea93c139a4be41f8eb (diff)
downloaddotfiles-1f7d19ca4bc69ddf8c048cbb17146b3605b38d25.tar.gz
simplify i3 bindings to open a new Emacs frame
Diffstat (limited to '.config')
-rw-r--r--.config/i3/config15
1 files changed, 4 insertions, 11 deletions
diff --git a/.config/i3/config b/.config/i3/config
index 90ac8162..24e1ae1d 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -38,18 +38,11 @@ workspace_layout tabbed
# enough keys left on the right hand that caps lock can be our
# only Super modifier, yet we do not need any one-handed chording
mode "Window management" {
- # start a terminal
- bindsym Shift+Return exec xfce4-terminal, mode "default"
-
- # make a fresh Emacs frame
- bindsym apostrophe exec emacsclient -cn, mode "default"
+ # make a fresh Emacs frame, and select an Eshell in $HOME by default
+ bindsym Return exec emacsclient -cne '(spw/eshell-here t)', mode "default"
- # get to an instance of Eshell in home directory
- # TODO it should not be necessary to let-bind both
- # display-buffer-alist and display-buffer-overriding-action
- bindsym Return exec emacsclient -cne \
- "(let ((display-buffer-alist nil) (display-buffer-overriding-action '(display-buffer-same-window))) (spw/eshell-here))", \
- mode "default"
+ # start a terminal emulator
+ bindsym Shift+Return exec xfce4-terminal, mode "default"
# make a fresh browser window
bindsym b exec firefox -new-window, mode "default"