Enable 'ffap' mode.
--- a/.emacs-my Tue Mar 15 22:33:38 2011 +0200
+++ b/.emacs-my Sat Mar 19 23:41:39 2011 +0200
@@ -505,20 +505,21 @@
)
;;; ----------------------------------------------------------------
-(message "open file, ffap")
+(message "open file, ffap, dired")
+
(setq-default save-place t)
(require 'saveplace)
-;;; ----------------------------------------------------------------
-(message "dired")
+(require 'dired)
-(require 'dired)
+(require 'ffap)
+(ffap-bindings)
;; I usually mistype "C-x C-f" to "C-x d" or "C-x C-d", so always use find-file,
;; because when file if directory find-file load dired, if regular file open it.
-(global-set-key (kbd "C-x C-f") 'find-file)
-(global-set-key (kbd "C-x C-d") 'find-file)
-(global-set-key (kbd "C-x d") 'find-file)
+(global-set-key (kbd "C-x C-f") 'find-file-at-point)
+(global-set-key (kbd "C-x C-d") 'find-file-at-point)
+(global-set-key (kbd "C-x d") 'find-file-at-point)
(setq dired-dwim-target t)
;; dangerous