On Sun, Aug 24, 2008 at 8:46 AM, Pierre Gaston <[EMAIL PROTECTED]> wrote:
> 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
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))
On Sat, Aug 23, 2008 at 12:53 AM, Chet Ramey <[EMAIL PROTECTED]> wrote:
> Francis Moreau wrote:
>> hmm why not fixing the command instead ?
>
> It's not broken.
Well, if you consider the man page correct, the command is, isn't it ?
>> VISUAL can be used to visualize a file, so can be set to 'les
Francis Moreau wrote:
On 8/22/08, Chet Ramey <[EMAIL PROTECTED]> wrote:
Good catch. The command executed is actually
fc -e "${VISUAL:-${EDITOR:-emacs}}"
It's the same command for vi and emacs editing modes, though the default
for vi editing mode is `vi' instead of `emacs'. The documentation
On 8/22/08, Chet Ramey <[EMAIL PROTECTED]> wrote:
> Good catch. The command executed is actually
>
> fc -e "${VISUAL:-${EDITOR:-emacs}}"
>
> It's the same command for vi and emacs editing modes, though the default
> for vi editing mode is `vi' instead of `emacs'. The documentation needs
> to be u
Francis Moreau wrote:
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu'
-DCONF_VENDOR='redhat' -DLOCALED