diff options
author | Alan Pearce | 2020-07-04 15:06:57 +0200 |
---|---|---|
committer | Alan Pearce | 2020-07-04 15:06:57 +0200 |
commit | ae7ecf326868523371dd7d0049b0c0685de6326d (patch) | |
tree | d2cf2e8d2b0a28c44abd1494d48cb5a58a44a24f | |
parent | ad8d8439dce8e7ca01818fc377354b233a9cadb8 (diff) | |
download | nixfiles-ae7ecf326868523371dd7d0049b0c0685de6326d.tar.lz nixfiles-ae7ecf326868523371dd7d0049b0c0685de6326d.tar.zst nixfiles-ae7ecf326868523371dd7d0049b0c0685de6326d.zip |
zsh: create function to add project to emacs
-rw-r--r-- | user/zsh/zshrc | 5 |
1 files changed, 5 insertions, 0 deletions
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}\")" +} |