all repos — nixfiles @ ae7ecf326868523371dd7d0049b0c0685de6326d

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

zsh: create function to add project to emacs

Alan Pearce
commit

ae7ecf326868523371dd7d0049b0c0685de6326d

parent

ad8d8439dce8e7ca01818fc377354b233a9cadb8

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

changed files
M user/zsh/zshrcuser/zsh/zshrc
@@ -125,3 +125,8 @@ bindkey '\ej' anyframe-widget-cd-ghq-repository
bindkey '^x^k' anyframe-widget-kill unsetopt flow_control # Let me use ^S and ^Q + +add_project () { + project=${1:-$PWD} + emacsclient -e "(projectile-add-known-project \"${project}\")" +}