>> I get the error message: Symbol's value as variable is void:
>> dired-mode-map. Is the tip outdated?
David> Maybe try something like (require 'dired) before evaluating this?
Also, I think you might need (dired-get-filename) instead of
(dired-get-file-for-visit), at least you do in XEmacs.
Skip