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
|
(if (with-temp-buffer
|
||||||
(insert output)
|
(insert output)
|
||||||
(>= (count-lines (point-min) (point-max))
|
(>= (count-lines (point-min) (point-max))
|
||||||
+eval-overlay-max-lines))
|
+eval-popup-min-lines))
|
||||||
(let ((output-buffer (get-buffer-create "*doom eval*"))
|
(let ((output-buffer (get-buffer-create "*doom eval*"))
|
||||||
(origin (selected-window)))
|
(origin (selected-window)))
|
||||||
(with-current-buffer output-buffer
|
(with-current-buffer output-buffer
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(insert output)
|
(insert output)
|
||||||
(>= (count-lines (point-min) (point-max))
|
(>= (count-lines (point-min) (point-max))
|
||||||
+eval-overlay-max-lines))
|
+eval-popup-min-lines))
|
||||||
(not (require 'eros nil t)))
|
(not (require 'eros nil t)))
|
||||||
#'+eval-display-results-in-popup
|
#'+eval-display-results-in-popup
|
||||||
#'+eval-display-results-in-overlay)
|
#'+eval-display-results-in-overlay)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
;;; tools/eval/config.el -*- lexical-binding: t; -*-
|
;;; 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
|
"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
|
;; remove ellipsis when printing sexps in message buffer
|
||||||
(setq eval-expression-print-length nil
|
(setq eval-expression-print-length nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue