<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikemacs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=134.134.137.73</id>
	<title>WikEmacs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wikemacs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=134.134.137.73"/>
	<link rel="alternate" type="text/html" href="https://wikemacs.org/wiki/Special:Contributions/134.134.137.73"/>
	<updated>2026-04-11T15:11:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wikemacs.org/index.php?title=Smex&amp;diff=4662</id>
		<title>Smex</title>
		<link rel="alternate" type="text/html" href="https://wikemacs.org/index.php?title=Smex&amp;diff=4662"/>
		<updated>2013-06-14T13:18:07Z</updated>

		<summary type="html">&lt;p&gt;134.134.137.73: /* Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Smex is a M-x enhancement''' for Emacs. Built on top of [[Ido]], it provides a convenient interface to your recently and most frequently used commands. And to all the other commands, too.&lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
&lt;br /&gt;
Download via [[package.el]], [[el-get]] or [http://github.com/nonsequitur/smex/blob/master/smex.el?raw=true the sources] and set-up your load-path.&lt;br /&gt;
&lt;br /&gt;
You are now ready to call {{Command|smex}}. The commands are displayed in an Ido completion buffer, ordered by relevance. The 7 most recently executed commands come first, the rest are sorted by frequency of use, command length and in alphabetical order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Configuration = &lt;br /&gt;
&lt;br /&gt;
To auto-start Smex every time you open Emacs add these lines to your .emacs file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lisp&amp;quot;&amp;gt;&lt;br /&gt;
(require 'smex) ; Not needed if you use package.el&lt;br /&gt;
(smex-initialize) ; Can be omitted. This might cause a (minimal) delay&lt;br /&gt;
                  ; when Smex is auto-initialized on its first run.&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Bind some keys:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lisp&amp;quot;&amp;gt;&lt;br /&gt;
(global-set-key (kbd &amp;quot;M-x&amp;quot;) 'smex)&lt;br /&gt;
(global-set-key (kbd &amp;quot;M-X&amp;quot;) 'smex-major-mode-commands)&lt;br /&gt;
;; This is your old M-x.&lt;br /&gt;
(global-set-key (kbd &amp;quot;C-c C-c M-x&amp;quot;) 'execute-extended-command)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Delayed Initiation ==&lt;br /&gt;
&lt;br /&gt;
Use the following code to make emacs startup a little faster. This delays initializing smex until it’s needed. Just have smex call ‘smex-initialize’ when it’s needed instead of having the user do it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lisp&amp;quot;&amp;gt;&lt;br /&gt;
(global-set-key [(meta x)] &lt;br /&gt;
  (lambda () &lt;br /&gt;
    (interactive) &lt;br /&gt;
    (or (boundp 'smex-cache) &lt;br /&gt;
        (smex-initialize)) &lt;br /&gt;
    (global-set-key [(meta x)] 'smex) (smex))) &lt;br /&gt;
&lt;br /&gt;
(global-set-key [(shift meta x)] &lt;br /&gt;
  (lambda () (interactive) &lt;br /&gt;
  (or (boundp 'smex-cache) (smex-initialize)) &lt;br /&gt;
  (global-set-key [(shift meta x)] 'smex-major-mode-commands) &lt;br /&gt;
  (smex-major-mode-commands)))&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Learn more =&lt;br /&gt;
&lt;br /&gt;
The documentation is on github: https://github.com/nonsequitur/smex/blob/master/README.markdown&lt;br /&gt;
&lt;br /&gt;
== Show only major mode commands ==&lt;br /&gt;
&lt;br /&gt;
'''smex-major-mode-commands''' runs Smex, limited to commands that are relevant to the active major mode. Try it with Dired or Magit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Convenience]]&lt;br /&gt;
[[Category:Completion]]&lt;br /&gt;
[[Category:Third Party Package]]&lt;/div&gt;</summary>
		<author><name>134.134.137.73</name></author>
	</entry>
</feed>