summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-02-27 20:29:14 -0500
committerKyle Meyer <kyle@kyleam.com>2015-02-28 00:29:50 -0500
commit7af8847a631e3abc7fe9bf2d706ca4c549d61258 (patch)
tree81095fbf8f3a07eba9a4c4e3f9595f2244094578 /lisp
parentad0adeac1e820d04ec91ca927dc197c0bff240a2 (diff)
downloademacs.d-7af8847a631e3abc7fe9bf2d706ca4c549d61258.tar.gz
Rework some file-map bindings
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-files.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/init-files.el b/lisp/init-files.el
index 64d30f9..33e391d 100644
--- a/lisp/init-files.el
+++ b/lisp/init-files.el
@@ -49,8 +49,6 @@ Use the current file name as initial input of prompt."
init-file)))
(write-file new-file t)))
-(global-set-key (kbd "C-x C-r") 'km/rename-current-buffer-file)
-(global-set-key (kbd "C-x F") 'km/find-file-as-root)
(global-set-key (kbd "C-x C-w") 'km/write-file)
(key-chord-define-global "jc" 'find-file)
@@ -59,6 +57,10 @@ Use the current file name as initial input of prompt."
(define-prefix-command 'km/file-map)
(global-set-key (kbd "C-c f") 'km/file-map)
+
+(define-key km/file-map "R" 'km/find-file-as-root)
+(define-key km/file-map "n" 'km/rename-current-buffer-file)
+(define-key km/file-map "l" 'nlines-run-command)
(define-key km/file-map "v" 'view-file)