diff options
author | William Carroll <wpcarro@gmail.com> | 2019-03-21T13·57+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2019-03-21T13·57+0000 |
commit | cf39cf760ac97dd3a8402991067f0c4184941c6e (patch) | |
tree | 628df1e6e1e207d8517d00c277285983c3ed4cd2 | |
parent | b1275671a80d6ec2f1acb6f98b79daeb19729e5c (diff) |
Prefer Emacs client-server setup
This change affects: - alias e - i3 KBDs - .xsessionrc It will be interesting to see how this works over SSH. In theory, the ALTERNATE_EDITOR variable should kick in and `vim` should be used. Time will tell if this is the preferred setup. Until then...
-rw-r--r-- | configs/shared/misc/.config/i3/config | 4 | ||||
-rw-r--r-- | configs/shared/x_server/.xsessionrc.shared | 3 | ||||
-rw-r--r-- | configs/shared/zsh/aliases.zsh | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/configs/shared/misc/.config/i3/config b/configs/shared/misc/.config/i3/config index ac41de318d04..0756f344cf9b 100644 --- a/configs/shared/misc/.config/i3/config +++ b/configs/shared/misc/.config/i3/config @@ -41,13 +41,13 @@ floating_modifier $mod # Vertical bindsym $mod+Ctrl+t split v; exec st bindsym $mod+Ctrl+Return split v; exec st -bindsym $mod+Ctrl+e split v; exec emacs +bindsym $mod+Ctrl+e split v; exec emacsclient --create-frame ~/programming bindsym $mod+Ctrl+c split v; exec google-chrome bindsym $mod+Ctrl+s split v; exec spotify # Horizontal bindsym $mod+Ctrl+Shift+t split h; exec st bindsym $mod+Ctrl+Shift+Return split h; exec st -bindsym $mod+Ctrl+Shift+e split h; exec emacs +bindsym $mod+Ctrl+Shift+e split h; exec emacsclient --create-frame ~/programming bindsym $mod+Ctrl+Shift+c split h; exec google-chrome bindsym $mod+Ctrl+Shift+s split h; exec spotify diff --git a/configs/shared/x_server/.xsessionrc.shared b/configs/shared/x_server/.xsessionrc.shared index e53c36942a56..b19e3359efd0 100644 --- a/configs/shared/x_server/.xsessionrc.shared +++ b/configs/shared/x_server/.xsessionrc.shared @@ -16,6 +16,9 @@ xsetroot -solid "#333333" # This might be better for SSH. tmux new -d -s main +# Start the Emacs server +emacs --daemon + # set kbds xmodmap -e 'remove Lock = Caps_Lock' xmodmap -e 'keysym Caps_Lock = Escape' diff --git a/configs/shared/zsh/aliases.zsh b/configs/shared/zsh/aliases.zsh index 515cf9bf5676..9ede83c80773 100644 --- a/configs/shared/zsh/aliases.zsh +++ b/configs/shared/zsh/aliases.zsh @@ -20,7 +20,7 @@ alias ls="exa" alias ll="exa -l" alias la="exa -la" alias lorem="echo Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." -alias e="emacsclient --no-wait" +alias e="emacsclient --no-wait --create-frame" alias cat="bat" alias j='fasd_cd -d' # to emulate autojump; my muscle memory is hardened here alias vim=nvim # prefer neovim to vim |