Rename +eval-overlay-max-lines -> +eval-popup-min-lines
Generalize variable.
This commit is contained in:
parent
effee30138
commit
762c374198
2 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@
|
|||
(if (with-temp-buffer
|
||||
(insert output)
|
||||
(>= (count-lines (point-min) (point-max))
|
||||
+eval-overlay-max-lines))
|
||||
+eval-popup-min-lines))
|
||||
(let ((output-buffer (get-buffer-create "*doom eval*"))
|
||||
(origin (selected-window)))
|
||||
(with-current-buffer output-buffer
|
||||
|
@ -41,7 +41,7 @@
|
|||
(with-temp-buffer
|
||||
(insert output)
|
||||
(>= (count-lines (point-min) (point-max))
|
||||
+eval-overlay-max-lines))
|
||||
+eval-popup-min-lines))
|
||||
(not (require 'eros nil t)))
|
||||
#'+eval-display-results-in-popup
|
||||
#'+eval-display-results-in-overlay)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
;;; tools/eval/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(defvar +eval-overlay-max-lines 4
|
||||
(defvar +eval-popup-min-lines 4
|
||||
"The output height threshold (inclusive) before output is displayed in a popup
|
||||
buffer rather than an overlay on the line at point.")
|
||||
buffer rather than an overlay on the line at point or the minibuffer.")
|
||||
|
||||
;; remove ellipsis when printing sexps in message buffer
|
||||
(setq eval-expression-print-length nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue