From ae7ecf326868523371dd7d0049b0c0685de6326d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 4 Jul 2020 15:06:57 +0200 Subject: zsh: create function to add project to emacs --- user/zsh/zshrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'user') diff --git a/user/zsh/zshrc b/user/zsh/zshrc index 889a9490..e7bc871b 100644 --- a/user/zsh/zshrc +++ b/user/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}\")" +} -- cgit 1.4.1