Emacs/docs/latest/emacs/FFAP
Previous: Goto Address mode, Up: Hyperlinking [Contents][Index]
46.5 Finding Files and URLs at Point
The FFAP package replaces certain key bindings for finding files, such as C-x C-f, with commands that provide more sensible defaults. These commands behave like the ordinary ones when given a prefix argument. Otherwise, they get the default file name or URL from the text around point. If what is found in the buffer has the form of a URL rather than a file name, the commands use browse-url to view it (see Browse-URL).
This feature is useful for following references in mail or news buffers, README files, MANIFEST files, and so on. For more information, view the package commentary by typing C-h P ffap RET.
To enable FFAP, type M-x ffap-bindings. This makes the following key bindings, and also installs hooks for additional FFAP functionality in Rmail, Gnus and VM article buffers.
- C-x C-f
filenameRET Find
filename, guessing a default from text around point (find-file-at-point).- C-x C-r
filenameRET ffap-read-only, analogous tofind-file-read-only.- C-x C-v
filenameRET ffap-alternate-file, analogous tofind-alternate-file.- C-x d
directoryRET Start Dired on
directory, defaulting to the directory at point (dired-at-point).- C-x C-d
directoryRET ffap-list-directory, analogous tolist-directory.- C-x 4 f
filenameRET ffap-other-window, analogous tofind-file-other-window.- C-x 4 r
filenameRET ffap-read-only-other-window, analogous tofind-file-read-only-other-window.- C-x 4 d
directoryRET ffap-dired-other-window, likedired-other-window.- C-x 5 f
filenameRET ffap-other-frame, analogous tofind-file-other-frame.- C-x 5 r
filenameRET ffap-read-only-other-frame, analogous tofind-file-read-only-other-frame.- C-x 5 d
directoryRET ffap-dired-other-frame, analogous todired-other-frame.- M-x ffap-next
Search buffer for next file name or URL, then find that file or URL.
- S-mouse-3
ffap-at-mousefinds the file guessed from text around the position of a mouse click.- C-S-mouse-3
Display a menu of files and URLs mentioned in current buffer, then find the one you select (
ffap-menu).
Previous: Goto Address mode, Up: Hyperlinking [Contents][Index]