diff options
author | Kyle Meyer <kyle@kyleam.com> | 2016-02-25 22:41:02 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2016-02-25 22:41:02 -0500 |
commit | 4fc117f8a3d2551d34561439a42debef2acb1844 (patch) | |
tree | 4df9e3b7f7a82d6b2909d50c2bd99886f9c381da | |
parent | 975c3b347f39f1ced00d1e0701aac9234f232b7f (diff) | |
download | emacs.d-4fc117f8a3d2551d34561439a42debef2acb1844.tar.gz |
Create diff prefix map
-rw-r--r-- | init.el | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1438,7 +1438,9 @@ (use-package diff :defer t :init - (define-key km/external-map "d" #'diff) + (define-prefix-command 'km/diff-prefix-map) + (define-key km/external-map "d" 'km/diff-prefix-map) + (define-key km/diff-prefix-map "d" #'diff) :config (setq diff-command "/bin/diff" diff-switches "-u")) @@ -1453,15 +1455,17 @@ (use-package ediff :defer t :init - (define-key km/external-map "e" #'ediff) + (define-key km/diff-prefix-map "e" #'ediff) :config (setq ediff-window-setup-function #'ediff-setup-windows-plain)) (use-package km-diff :defer t :init - (define-key km/external-map "o" #'km/diff-with-other-window) - (define-key km/external-map "O" #'km/ediff-with-other-window) + (bind-keys :map km/diff-prefix-map + ("c" . km/diff-current-buffer-with-file) + ("o" . km/diff-with-other-window) + ("O" . km/ediff-with-other-window)) (after 'diff-mode (define-key diff-mode-map (kbd "C-c C-l") #'km/diff-lock-buffer)) (after 'ediff |