summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-04-24 16:25:55 +0200
committerAlan Pearce2017-04-24 16:25:55 +0200
commitcc70e91eeeefc70bced1e1e126e3b0a2875e7899 (patch)
tree627acd90791d7e9c6f633f365d8d47ff00be608b /emacs
parent493ca6247b8fad2d6c20221e6baec59334e784ec (diff)
downloadnixfiles-cc70e91eeeefc70bced1e1e126e3b0a2875e7899.tar.lz
nixfiles-cc70e91eeeefc70bced1e1e126e3b0a2875e7899.tar.zst
nixfiles-cc70e91eeeefc70bced1e1e126e3b0a2875e7899.zip
Emacs: Use ghq to get dotfiles directory
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index da2a0f07..f5737ebd 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -432,7 +432,7 @@ configuration with crux.el
 #+BEGIN_SRC emacs-lisp
 (defun switch-to-dotfiles ()
   (interactive)
-  (projectile-switch-project-by-name (expand-file-name "~/projects/git.alanpearce.uk/alan/dotfiles/")))
+  (projectile-switch-project-by-name (split-string (shell-command-to-string "ghq list --full-path dotfiles"))))
 #+END_SRC
 
 ** The Silver Searcher