From ca46939b2e1e12aa4d03a181bbb092cb22b2d0af Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 16 Jul 2014 21:16:03 +0100 Subject: Emacs: Add command switch-to-dotfiles (s-,) Runs via projectile-persp, which means it should switch nicely when the perspective has been opened. --- tag-emacs/emacs.d/init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index a4ac789e..495de5d9 100644 --- a/tag-emacs/emacs.d/init.el +++ b/tag-emacs/emacs.d/init.el @@ -490,7 +490,10 @@ (bind-key "s-x" (define-prefix-command 'super-x-map)) -(bind-key "s-," #'init-imenu) +(defun switch-to-dotfiles () + (interactive) + (projectile-persp-switch-project (expand-file-name "dotfiles" home-project-directory))) +(bind-key "s-," #'switch-to-dotfiles) (set-register ?e `(file . ,*init-file*)) (set-register ?z `(file . ,(expand-file-name ".config/zsh/zshrc" "~"))) -- cgit 1.4.1