summaryrefslogtreecommitdiffstats
path: root/clean-completions.post
diff options
context:
space:
mode:
Diffstat (limited to 'clean-completions.post')
-rw-r--r--clean-completions.post28
1 files changed, 28 insertions, 0 deletions
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.
+
+<!-- Local Variables: -->
+<!-- mode: markdown -->
+<!-- End: -->