"If non-nil, text scaling may change font size of header lines too.")
(make-variable-buffer-local 'text-scale-header-line)
-(defun text-scale--refresh (symbol newval operation where)
- "Watcher for `text-scale-remap-header-line'.
-See `add-variable-watcher'."
- (when (and (eq symbol 'text-scale-remap-header-line)
- (eq operation 'set)
- text-scale-mode)
- (with-current-buffer where
- (let ((text-scale-remap-header-line newval))
- (text-scale-mode 1)))))
-(add-variable-watcher 'text-scale-remap-header-line #'text-scale--refresh)
-
(defun face-remap--clear-remappings ()
(dolist (remapping
;; This is a bit messy to stay backwards compatible.
(face-remap--remap-face 'header-line)))
(force-window-update (current-buffer)))
+(defun text-scale--refresh (symbol newval operation where)
+ "Watcher for `text-scale-remap-header-line'.
+See `add-variable-watcher'."
+ (when (and (eq symbol 'text-scale-remap-header-line)
+ (eq operation 'set)
+ text-scale-mode)
+ (with-current-buffer where
+ (let ((text-scale-remap-header-line newval))
+ (text-scale-mode 1)))))
+(add-variable-watcher 'text-scale-remap-header-line #'text-scale--refresh)
+
(defun text-scale-min-amount ()
"Return the minimum amount of text-scaling we allow."
;; When the resulting pixel-height of characters will become smaller