summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2018-08-20 12:08:37 +0200
committerAlan Pearce2018-08-20 12:08:37 +0200
commitbdab4d1fe9f25501c28b41b4be80db43e10b96c2 (patch)
tree300f6a74895911254ae07b13ff8eb560a12feef0 /emacs
parentcfbc254bb7fb094b7cd9401231898bc35c197bca (diff)
downloaddotfiles-bdab4d1fe9f25501c28b41b4be80db43e10b96c2.tar.lz
dotfiles-bdab4d1fe9f25501c28b41b4be80db43e10b96c2.tar.zst
dotfiles-bdab4d1fe9f25501c28b41b4be80db43e10b96c2.zip
emacs: fix open-project in non-default ghq root
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 098f324..a1a0e0c 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -523,9 +523,9 @@
               (interactive "P")
               (let ((project-dir (projectile-completing-read
                                   "Open project: "
-                                  (ghq--find-projects))))
+                                  (ghq--find-projects-full-path))))
                 (projectile-switch-project-by-name
-                 (expand-file-name project-dir (ghq--find-root)) arg)))
+                 project-dir arg)))
 
             (defun git-bug (bug)
               (interactive "sbug: ")