Commit fc79253fc3c4

Vincent Demeester <vincent@sbr.pm>
2022-07-06 19:12:04
tools/emacs: small updates on completion and buffers
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 7164967
tools/emacs/config/config-buffers.el
@@ -13,7 +13,7 @@
         '("\\*Messages\\*"
           "Output\\*$" "\\*Pp Eval Output\\*$"
           "\\*Compile-Log\\*"
-          "\\*Completions\\*"
+          ;; "\\*Completions\\*"
           "\\*Warnings\\*"
           "\\*Async Shell Command\\*"
           "\\*Apropos\\*"
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
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