Add function and keybinding to ediff current dotfile with template

This commit is contained in:
justbur 2015-04-22 08:52:22 -04:00 committed by syl20bnr
parent e4d6b5505c
commit 0996eb8733
2 changed files with 7 additions and 0 deletions

View File

@ -507,6 +507,12 @@ argument takes the kindows rotate backwards."
(interactive)
(find-file-existing (dotspacemacs/location)))
(defun ediff-dotfile-and-template ()
"ediff the current `dotfile' with the template"
(interactive)
(ediff-files (dotspacemacs/location)
(concat dotspacemacs-template-directory ".spacemacs.template")))
(defun find-spacemacs-file ()
(interactive)
"Edit the `file' in the spacemacs base directory, in the current window."

View File

@ -105,6 +105,7 @@ Ensure that helm is required before calling FUNC."
"fes" 'find-spacemacs-file
"fec" 'find-contrib-file
"fed" 'find-dotfile
"feD" 'ediff-dotfile-and-template
"feR" 'dotspacemacs/sync-configuration-layers
"fev" 'spacemacs/display-and-copy-version
"fF" 'ido-find-file