help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: help create function alias


From: Stefan Monnier
Subject: Re: help create function alias
Date: Wed, 08 Dec 2010 15:29:36 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

>>    (define-key minibuffer-local-completion-map
>>                [(meta tab)] 'minibuffer-force-complete)
[...]
> would it be nice to have a general mechanism to execute commands with
> just their inits?

It should be fairly easy to come up with an ad-hoc completion command
for intitials-only based on the `initials' completion-style, coupled
with minibuffer-force-complete.  I.e. something along the lines of

(defun 100%-untested-initials-completion-command ()
  "No docstring."
  (interactive)
  (let ((completion-styles '(initials)))
    (minibuffer-force-complete)))

which you then would want to bind somewhere in the keymap used by M-x


        Stefan


reply via email to

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