While using M-x
; by default C-s
was binding to next line so I used to keep pressing C-s
to toggle around. When I start using smex
, C-s
is now it is bound to I-search
in some cases as follows:
M-x
than type package
and press TAB two times and press C-s
two times and I-search: [No previous search string]
message will show up.
Is it possible disable I-search
and I-search backward:
during usage of smex
, where C-s
and C-r
would be bound to nil
.
my setup:
(setq smex-save-file "~/.emacs.d/settings/smex-items")
(global-set-key (kbd "M-x") 'smex)
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
(eval-after-load 'smex
`(defun smex-prepare-ido-bindings ()
(define-key ido-completion-map (kbd "TAB") 'minibuffer-complete)
(define-key ido-completion-map (kbd "C-,") 'smex-describe-function)
(define-key ido-completion-map (kbd "C-w") 'smex-where-is)
(define-key ido-completion-map (kbd "C-.") 'smex-find-function)
(define-key ido-completion-map (kbd "C-a") 'move-beginning-of-line)
(define-key ido-completion-map (kbd "C-p") 'previous-history-element)
;;
(define-key ido-completion-map (kbd "C-e") 'end-of-visual-line)
(define-key ido-completion-map (kbd "C-r") 'end-of-visual-line)
(define-key ido-completion-map (kbd "C-s") 'end-of-visual-line)
))