Skip to content

Instantly share code, notes, and snippets.

@imakado
Created December 9, 2009 11:36
Show Gist options
  • Save imakado/252417 to your computer and use it in GitHub Desktop.
Save imakado/252417 to your computer and use it in GitHub Desktop.
(let ((anything-samewindow t)
(anything-display-function 'anything-default-display-buffer))
(azh/set-command
(anything-other-buffer
`((name . "History")
(action
("Paste" . identity)
("Edit" . azh/edit-command))
,@anything-c-source-complete-shell-history)
"*anything zsh history*")))
;;=>
Debugger entered--Lisp error: (wrong-type-argument listp "History")
assoc-default(default-value (name . "History"))
(let ((it ...)) (if it (append source ...) source))
(anything-aif (assoc-default (quote default-value) source) (append source (\` ...)) source)
anything-compile-source--default-value((name . "History"))
#[(source) "<ƒ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment