commit fc79253fc3c4377585bec7fbbd9c3ebb702b8802
parent 71649670bff2369acad48ca850e9948ca8ed5c88
Author: Vincent Demeester <vincent@sbr.pm>
Date: Wed, 6 Jul 2022 19:12:04 +0200
tools/emacs: small updates on completion and buffers
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/tools/emacs/config/config-buffers.el b/tools/emacs/config/config-buffers.el
@@ -13,7 +13,7 @@
'("\\*Messages\\*"
"Output\\*$" "\\*Pp Eval Output\\*$"
"\\*Compile-Log\\*"
- "\\*Completions\\*"
+ ;; "\\*Completions\\*"
"\\*Warnings\\*"
"\\*Async Shell Command\\*"
"\\*Apropos\\*"
diff --git a/tools/emacs/config/config-completion.el b/tools/emacs/config/config-completion.el
@@ -140,6 +140,10 @@ instead."
(use-package vertico
:unless noninteractive
:config
+ (setq vertico-scroll-margin 0)
+ (setq vertico-count 10)
+ (setq vertico-resize nil)
+ (setq vertico-cycle t)
(vertico-mode))
(use-package embark
diff --git a/tools/emacs/config/config-editing.el b/tools/emacs/config/config-editing.el
@@ -200,8 +200,10 @@ Else toggle the comment status of the line at point."
tab-width 4
indent-tabs-mode nil))
-(use-package emacs
- :hook (before-save . delete-trailing-whitespace))
+;; FIXME: enable/disable this through a minor mode
+;; can be enable by default in code, disable in adoc-mode, …
+;; (use-package emacs
+;; :hook (before-save . delete-trailing-whitespace))
(use-package delsel
:unless noninteractive