From 0a67b47e8df6d6ca6f6943aa0fbeba0076f2369b Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Thu, 14 Dec 2017 01:35:31 -0500 Subject: [PATCH] bubble up kill-completion-buffer --- global.org | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/global.org b/global.org index 6e52a84..92ad5a4 100644 --- a/global.org +++ b/global.org @@ -235,6 +235,15 @@ #+BEGIN_SRC emacs-lisp (setq echo-keystrokes 0.10) #+END_SRC +** Disable completion buffer + Remove the completion buffer as soon as we get out of the minibuffer + #+BEGIN_SRC emacs-lisp + (add-hook 'minibuffer-exit-hook + '(lambda () + (let ((buffer "*Completions*")) + (and (get-buffer buffer) + (kill-buffer buffer))) )) + #+END_SRC * Main packages ** Outshine #+BEGIN_SRC emacs-lisp @@ -390,14 +399,6 @@ ;(require 'wordnik-synonym) ;(global-set-key (kbd "H-=") 'wn/synonym-at-point) - ;; * kill annoying completion buffer - (add-hook 'minibuffer-exit-hook - '(lambda () - (let ((buffer "*Completions*")) - (and (get-buffer buffer) - (kill-buffer buffer))) - )) - ;; * Time stamps ;; write ;; Time-stamp: <> @@ -456,7 +457,6 @@ ;; it does not wark perfectly as some packages are still to be loaded ;; (most notably magit) - (mapc (lambda (face) (set-face-attribute face nil :weight 'normal)