Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.41 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. (defun anything-kill-buffers ()
  2.   "Preconfigured `anything' to kill buffer you selected."
  3.   (interactive)
  4.   (anything
  5.    '(((name . "Kill Buffers")
  6.       (type . buffer)
  7.       (candidates . anything-c-buffer-list)
  8.       (action
  9.        ("Kill Buffer" . (lambda (candidate)
  10.                           (kill-buffer candidate)
  11.                           (anything-kill-buffers)
  12.                           )))))
  13.    nil nil))