On Sat, 23 Aug 2008, Francis Moreau wrote:
I think I won't use VISUAL but start emacs in sh-mode if the file name argument matches "*bash-fc-*" pattern. It should be safe.
adding the following in your .emacs should do the trick: (add-to-list 'auto-mode-alist '("^/tmp/bash-fc" . sh-mode))