[Top][All Lists]

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

Re: Configure SPACE as file auto-complete character

From: Klaus Zeitler
Subject: Re: Configure SPACE as file auto-complete character
Date: Tue, 18 Dec 2007 07:52:23 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (usg-unix-v)

Hello Ben,
>>>>> "Bruza" == Bruza  <address@hidden> writes:
    Bruza> if I like to keep the SPACE as the file auto-complete
    Bruza> character, how can I configure it back to the pre- version 22
    Bruza> behavior?

Yes that change is a real pain. I guess I need a space in a filename
about once or twice a year here in our Solaris/GNU Linux environment. I
wish there was an option to switch back to the original behavior or even
better this change would be the default for Microsoft users only.

Here's what I added to my .emacs file:

(if (>= emacs-major-version 22)
    (if partial-completion-mode
          (define-key minibuffer-local-must-match-filename-map
            (kbd "SPC") 'PC-complete-word)
          (define-key minibuffer-local-filename-completion-map
            (kbd "SPC") 'PC-complete-word))
      (define-key minibuffer-local-must-match-filename-map
        (kbd "SPC") 'minibuffer-complete-word)
      (define-key minibuffer-local-filename-completion-map
        (kbd "SPC") 'minibuffer-complete-word)))


|  Klaus Zeitler      Alcatel-Lucent  |
The difference between a fool and a wise man is not
the things they know, it's the questions they ask.

reply via email to

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