emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: key to yank text at point into minibuffer?


From: Kevin Rodgers
Subject: Re: key to yank text at point into minibuffer?
Date: Mon, 13 Feb 2006 14:39:58 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Drew Adams wrote:
    > I tried ffap.el for a while and found I didn't care much for it. In
    > particular, in Dired I rarely want to use the file name at
    > point when I use `C-x f' - if I want that then I just use `RET'.
    > Anyway, if people find ffap.el handy that's fine. I realize that it
    > also does other things, including mailto: prefixing and remote-file
    > handling.

    (define-key dired-mode-map "\C-x\C-f" 'find-file) ; override
                                                      ; ffap-bindings

Well, that wasn't the real point of my posting, but yes, that would do the
trick for `C-x C-f' in Dired. However, ffap.el does a lot more in Dired, and
there are other such bindings to override.

ffap.el itself says:

;; For the default installation, add this line to your .emacs file:
;;
;; (ffap-bindings)                      ; do default key bindings
;;
;; ffap-bindings makes the following global key bindings:
;;
;; C-x C-f              find-file-at-point (abbreviated as ffap)
;; C-x C-r              ffap-read-only
;; C-x C-v              ffap-alternate-file
;;
;; C-x d                dired-at-point
;; C-x C-d              ffap-list-directory
;;
;; C-x 4 f              ffap-other-window
;; C-x 4 r              ffap-read-only-other-window
;; C-x 4 d              ffap-dired-other-window
;;
;; C-x 5 f              ffap-other-frame
;; C-x 5 r              ffap-read-only-other-frame
;; C-x 5 d              ffap-dired-other-frame
;;
;; S-mouse-3     ffap-at-mouse
;; C-S-mouse-3   ffap-menu
;;
;; ffap-bindings also adds hooks to make the following local bindings
;; in vm, gnus, and rmail:
;;
;; M-l         ffap-next, or ffap-gnus-next in gnus (l == "link")
;; M-m         ffap-menu, or ffap-gnus-menu in gnus (m == "menu")
;;
;; If you do not like these bindings, modify the variable
;; `ffap-bindings', or write your own.

That last part is muy importante.

I no longer use ffap.el, but when I did, I added an option to inhibit it,
and set the option as a local variable when in Dired mode. That might be
overkill, but it accomplished what I wanted.

I think that would be a userful feature.

--
Kevin Rodgers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]