From 586030d9702a03121e57a4326124b248732342e5 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 2 Jan 2015 21:04:36 +0100 Subject: Add old posts --- clean-completions.post | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 clean-completions.post (limited to 'clean-completions.post') diff --git a/clean-completions.post b/clean-completions.post new file mode 100644 index 0000000..6f39e77 --- /dev/null +++ b/clean-completions.post @@ -0,0 +1,28 @@ +;;;;; +title: Clean completions +tags: emacs, tips, visual +date: 2014-07-08 19:19 +format: md +;;;;; + +Today's post is very short. In my quest to make GNU Emacs look ever +better I thought about something new (to me). Not all buffers need +have a mode line. As such I will now turn off the mode line for +`completion-list-mode`, since that only shows up for a short while and +I've so far never had any trouble distinguishing it from other +buffers. + +``` emacs-lisp +(add-hook 'completion-list-mode-hook + (lambda () (setq mode-line-format nil))) +``` + +Now, whenever a completion buffer pops up, it'll use all the space +available, including the line where the mode line used to be. If it +shows up just above the minibuffer (which for me it always has done) +it looks more like a part of the same thing instead of two separate +windows. + + + + -- cgit v1.2.3-54-g00ecf