Skip to content

Instantly share code, notes, and snippets.

@magnars
Created July 21, 2012 10:58
Show Gist options
  • Save magnars/3155433 to your computer and use it in GitHub Desktop.
Save magnars/3155433 to your computer and use it in GitHub Desktop.
Closing *Completion* buffer easily
(defun insert-self-and-close-completion (N)
(interactive "p")
(self-insert-command N)
(ignore-errors
(bury-buffer "*ESS Completions*")))
(define-key ess-mode-map (kbd "SPC") 'insert-self-and-close-completion)
(define-key ess-mode-map (kbd "(") 'insert-self-and-close-completion)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment