From 633c0d274006dbceec02875b50f99bf3e4dac706 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 29 Aug 2014 18:17:43 -0400 Subject: Fix ctl-x-4-map binding I was unbinding "R" and then binding it again later because I didn't realize that it wasn't a default. --- lisp/init-buffile.el | 4 ---- lisp/init-ido.el | 5 +++-- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'lisp') diff --git a/lisp/init-buffile.el b/lisp/init-buffile.el index 5e6aee8..31695fd 100644 --- a/lisp/init-buffile.el +++ b/lisp/init-buffile.el @@ -56,10 +56,6 @@ user." (global-set-key (kbd "C-x K") 'kill-buffer-and-window) (key-chord-define-global ",f" 'find-file) -;; Replace `find-file-read-only-other-window' binding with -;; `view-file-other-window'. This is functionally the same, but more -;; consistent with my projectile bindings. -(define-key ctl-x-4-map "R" nil) (define-key ctl-x-4-map "v" 'view-file-other-window) (key-chord-define-global ",s" 'save-buffer) diff --git a/lisp/init-ido.el b/lisp/init-ido.el index 64417fc..87a314e 100644 --- a/lisp/init-ido.el +++ b/lisp/init-ido.el @@ -53,8 +53,9 @@ (ido-completing-read "Choose recent file: " recentf-list nil t)) (key-chord-define-global ",r" 'km/recentf-ido-find-file) -;; Remap find-file-read-only-other-window to free up "r". -(define-key ctl-x-4-map "R" 'find-file-read-only-other-window) +;; This overrides `find-file-read-only-other-window', but +;; `view-file-other-window', which I map to 'v', has the same +;; functionality. (define-key ctl-x-4-map "r" 'km/recentf-ido-find-file-other-window) (key-chord-define-global ",b" 'ido-switch-buffer) -- cgit v1.2.3