Skip to content

Commit

Permalink
feat(ui): add solaire-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 21, 2023
1 parent 8b5de41 commit ed68c64
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions core/me-core-ui.el
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@

;;; 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 Expand Up @@ -89,6 +76,13 @@
github debug repl lsp minor-modes input-method indent-info buffer-encoding
major-mode process vcs checker time " ")))

(use-package solaire-mode
:straight t
:hook (minemacs-after-startup . solaire-global-mode)
:config
(dolist (face '(mode-line mode-line-active mode-line-inactive mode-line-emphasis))
(setf (alist-get face solaire-mode-remap-alist) nil)))

(use-package lin
:straight t
:hook (minemacs-after-startup . lin-global-mode))
Expand Down

0 comments on commit ed68c64

Please sign in to comment.