Skip to content

Commit

Permalink
revert(ui): restore the smaller lines numbers tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Dec 7, 2023
1 parent ef19196 commit 88a9282
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions core/me-core-ui.el
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@

;;; Code:

;; Apply tweaks
(+add-hook! '(after-init-hook enable-theme-functions)
(defun +theme--tweaks-h (&optional _)
"Use smaller font (75% of the default) for line numbers in graphic mode."
(when (display-graphic-p)
(set-face-attribute 'line-number nil
:background (face-attribute 'default :background)
:height (truncate (* 0.75 (face-attribute 'default :height)))
:weight 'semi-light)
(set-face-attribute 'line-number-current-line nil
:height (truncate (* 0.75 (face-attribute 'default :height)))
:weight 'bold))))

;; Disable previously enabled custom themes before enabling a new one.
(advice-add
'load-theme :before
Expand Down

0 comments on commit 88a9282

Please sign in to comment.