all repos — nixfiles @ 0220e076b784d80125687e5361eb11073e43059d

System and user configuration, managed by nix and home-manager

zsh: add helpers to copy/set environment variables in Emacs

Alan Pearce
commit

0220e076b784d80125687e5361eb11073e43059d

parent

28703f6e2748c335c90ef0c1dbe6fc6eaae7de8f

1 file changed, 8 insertions(+), 0 deletions(-)

jump to
M user/zsh/zshrcuser/zsh/zshrc
@@ -149,3 +149,11 @@ add_project () {
project=${1:-$PWD} emacsclient -e "(projectile-add-known-project \"${project}\")" } + +esetenv () { + emacsclient -e "(setenv \"$1\" \"$2\")" +} + +ecpenv () { + esetenv "$1" "${(P)1}" +}