Add key bindings for finding file that work in M-x term.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 04 Feb 2015 19:46:18 +0200
changeset 1201 c300c3c9e973
parent 1200 a8fcda9c0aab
child 1202 17ed3f571ca4
Add key bindings for finding file that work in M-x term.
.emacs-my
--- a/.emacs-my	Wed Feb 04 19:30:15 2015 +0200
+++ b/.emacs-my	Wed Feb 04 19:46:18 2015 +0200
@@ -856,9 +856,15 @@
 ;; ido-ignore-directories
 ;; ido-ignore-files
 
-(ignore-errors
-  (require 'ido)
-  (ido-mode 1))
+(unless
+    (ignore-errors
+      (require 'ido)
+      (ido-mode 1)
+      (global-set-key [?\s-d] #'ido-dired)
+      (global-set-key [?\s-f] #'ido-find-file)
+      t)
+  (global-set-key [?\s-d] #'dired)
+  (global-set-key [?\s-f] #'find-file))
 
 (global-set-key [?\C-x right] 'next-buffer)
 (global-set-key [?\C-x left]  'previous-buffer)