summaryrefslogtreecommitdiff
path: root/lisp/init-files.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/init-files.el')
-rw-r--r--lisp/init-files.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/lisp/init-files.el b/lisp/init-files.el
index ff16aca..a8ff7eb 100644
--- a/lisp/init-files.el
+++ b/lisp/init-files.el
@@ -34,7 +34,7 @@
(defun km/find-file-as-root ()
"Automatically edit file with root-privileges."
(interactive)
- (let ((file (ido-read-file-name "Edit as root: ")))
+ (let ((file (read-file-name "Edit as root: ")))
(unless (file-writable-p file)
(setq file (concat "/sudo:root@localhost:" file)))
(find-file file)))
@@ -51,8 +51,6 @@ Use the current file name as initial input of prompt."
(global-set-key (kbd "C-x C-w") 'km/write-file)
-(key-chord-define-global "jc" 'find-file)
-
(define-key ctl-x-4-map "v" 'view-file-other-window)
(define-prefix-command 'km/file-map)
@@ -114,9 +112,8 @@ entering `ch' is equivalent to `*.[ch]'.")
;; `view-file-other-window', which I map to 'v', has the same
;; functionality.
(defun km/read-recent-file ()
- (ido-completing-read "Choose recent file: " recentf-list nil t))
+ (completing-read "Choose recent file: " recentf-list nil t))
-(key-chord-define-global "jt" 'km/recentf-find-file)
(define-key ctl-x-4-map "r" 'km/recentf-find-file-other-window)