summaryrefslogtreecommitdiffstats
path: root/clean-completions.post
blob: 6f39e777b98a5eaf21aa747c30c201d60912fcc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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.

<!-- Local Variables: -->
<!-- mode: markdown -->
<!-- End: -->