Set aliases for emacsclient

* modified: zshrc
This commit is contained in:
Jens Luedicke
2026-01-27 12:17:46 +01:00
parent 84387724bc
commit 7a71f61dab

9
zshrc
View File

@@ -42,6 +42,12 @@ alias fzv='vim $(fzf --preview "bat --color=always --style=numbers --line-range=
alias fgb='git branch | fzf | xargs git checkout'
alias fgl='git log --oneline | fzf --preview "git show --color=always {1}" | awk "{print \$1}" | xargs git show'
# Emacs client aliases (connect to daemon with graphical frame by default)
alias ec='/usr/local/bin/emacsclient -cn'
alias et='/usr/local/bin/emacsclient -t'
export EDITOR='/usr/local/bin/emacsclient -t'
export VISUAL='/usr/local/bin/emacsclient -c'
# Tmux session switcher with fzf
fts() {
local session
@@ -148,3 +154,6 @@ bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down
source /home/jenlue/.config/broot/launcher/bash/br
# opencode
export PATH=/home/jenlue/.opencode/bin:$PATH