Skip to content

Instantly share code, notes, and snippets.

@danking
Created November 3, 2011 02:38
Show Gist options
  • Select an option

  • Save danking/1335635 to your computer and use it in GitHub Desktop.

Select an option

Save danking/1335635 to your computer and use it in GitHub Desktop.
(global-set-key (kbd "C-c m")
(lexical-let ((previous-buffer (current-buffer)))
(lambda ()
(interactive)
(if (string-match "\*Mingus.*" (buffer-name))
(switch-to-buffer previous-buffer)
(progn
(setq previous-buffer (current-buffer))
(mingus))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment