Skip to content

Instantly share code, notes, and snippets.

@mad-p
mad-p / anything-update-or-select-action.el
Created February 14, 2012 00:17
TAB to update anything candidates without delay
(defun anything-update-or-select-action ()
"Immediately update anything candidates without delay.
If invoked twice in a row, does anything-select-action"
(interactive)
(if (eq last-command 'anything-update-or-select-action)
(anything-select-action)
(anything-check-new-input (minibuffer-contents))))
(mapc #'(lambda (sym)
(let ((map (and (boundp sym) (symbol-value sym))))