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)