summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-buffile.el5
-rw-r--r--lisp/init-git.el5
2 files changed, 6 insertions, 4 deletions
diff --git a/lisp/init-buffile.el b/lisp/init-buffile.el
index 98eb16f..5e6aee8 100644
--- a/lisp/init-buffile.el
+++ b/lisp/init-buffile.el
@@ -70,6 +70,11 @@ user."
(save-buffer)
(server-edit)))
+(define-prefix-command 'km/file-map)
+(global-set-key (kbd "C-c f") 'km/file-map)
+
+(define-key km/file-map "v" 'view-file)
+
;;; Ibuffer
;; Replace buffer-menu with ibuffer.
diff --git a/lisp/init-git.el b/lisp/init-git.el
index 7148b19..f4fa2bf 100644
--- a/lisp/init-git.el
+++ b/lisp/init-git.el
@@ -82,9 +82,6 @@ Useful for non-source code repos (e.g., Org mode note files)."
(delete "--track" magit-branch-popup-defaults)))
(define-key ctl-x-4-map "g" 'magit-find-file-other-window)
-
-(define-prefix-command 'km/magit-prefix-map)
-(define-key km/magit-prefix-map "f" 'magit-find-file)
-
+(define-key km/file-map "g" 'magit-find-file)
(provide 'init-git)