summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2020-07-04 15:06:57 +0200
committerAlan Pearce2020-07-04 15:06:57 +0200
commitae7ecf326868523371dd7d0049b0c0685de6326d (patch)
treed2cf2e8d2b0a28c44abd1494d48cb5a58a44a24f /user
parentad8d8439dce8e7ca01818fc377354b233a9cadb8 (diff)
downloadnixfiles-ae7ecf326868523371dd7d0049b0c0685de6326d.tar.lz
nixfiles-ae7ecf326868523371dd7d0049b0c0685de6326d.tar.zst
nixfiles-ae7ecf326868523371dd7d0049b0c0685de6326d.zip
zsh: create function to add project to emacs
Diffstat (limited to 'user')
-rw-r--r--user/zsh/zshrc5
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}\")"
+}