From 7feb46a375e072b361f08e9d799f20ac4b50f279 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Tue, 10 Mar 2015 00:14:33 -0400 Subject: Switch from ido to helm --- lisp/init-files.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lisp/init-files.el') 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) -- cgit v1.2.3