all repos — nixfiles @ ca46939b2e1e12aa4d03a181bbb092cb22b2d0af

System and user configuration, managed by nix and home-manager

Emacs: Add command switch-to-dotfiles (s-,) Runs via projectile-persp, which means it should switch nicely when the perspective has been opened.

Alan Pearce
commit

ca46939b2e1e12aa4d03a181bbb092cb22b2d0af

parent

471467186284bf2e39b26c79d98b2d01510d6ee0

1 file changed, 4 insertions(+), 1 deletion(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -490,7 +490,10 @@ (bind-key "s-k" #'kill-or-delete-this-buffer-dwim)
(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" "~")))