mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Smex has not been updated since late 2015. Amx was originally a fork of smex, but as since evolved much further into it's own thing. Among other things is supports other completing backends, and ivy with it's fuzzy matching feels rather nice. I'm keeping ido-mode for everything else, but specifically for M-x I'll give ivy a try.
30 lines
538 B
EmacsLisp
30 lines
538 B
EmacsLisp
;;; siren-amx.el --- jimeh's Emacs Siren: amx configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Replace M-x with the more powerful amx.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-ivy)
|
|
|
|
(use-package amx
|
|
:bind
|
|
("M-x" . amx)
|
|
("C-x C-m" . amx)
|
|
("C-c C-m" . amx)
|
|
("C-c C-c M-x" . execute-extended-command)
|
|
|
|
:custom
|
|
(amx-backend 'ivy)
|
|
(amx-histroy-lenth 15)
|
|
(amx-prompt-string "M-x ")
|
|
(amx-save-file (expand-file-name "amx-items" siren-cache-dir))
|
|
(amx-show-key-bindings t)
|
|
|
|
:config
|
|
(amx-mode +1))
|
|
|
|
(provide 'siren-amx)
|
|
;;; siren-amx.el ends here
|