Compare commits

...

2 Commits

Author SHA1 Message Date
Jeremy Dormitzer
81ba75c291 Fix zsh vterm integration 2022-04-14 09:18:00 -04:00
Jeremy Dormitzer
88ccd467a3 Fix embark keybinding once and for all? 2022-04-14 09:17:46 -04:00
3 changed files with 5 additions and 0 deletions

View File

@ -102,6 +102,7 @@ targets."
((emacs normal motion insert visual) "M-." #'embark-dwim)
("C-." #'embark-act)
("M-." #'embark-dwim)
([remap xref-find-definitions] #'embark-dwim)
(embark-file-map "s" #'sudo-edit-find-file
"l" #'vlf
"g" #'magit-file-dispatch)

View File

@ -28,6 +28,7 @@
(vterm-max-scrollback 10000)
(vterm-environment '("TYPEWRITTEN_CURSOR=terminal"))
(vterm-ignore-blink-cursor t)
(vterm-clear-scrollback-when-clearing t)
(vterm-eval-cmds '(("find-file" find-file)
("ff" find-file)
("message" message)

View File

@ -164,6 +164,8 @@ fi
# This is to change the title of the buffer based on information provided by the
# shell. See, http://tldp.org/HOWTO/Xterm-Title-4.html, for the meaning of the
# various symbols.
#
# To actually use this in emacs, customize the variable vterm-buffer-name-string
autoload -U add-zsh-hook
add-zsh-hook -Uz chpwd (){ print -Pn "\e]2;%m:%2~\a" }
@ -178,5 +180,6 @@ vterm_prompt_end() {
}
setopt PROMPT_SUBST
PROMPT=$PROMPT'%{$(vterm_prompt_end)%}'
[[ -z "$tw_prompt" ]] || tw_prompt=$tw_prompt'%{$(vterm_prompt_end)%}'
[[ -f "$HOME/.zshrc-spotify" ]] && source "$HOME/.zshrc-spotify"