UI
Define UI package.
(use-package emacs
:after uno
:config
(provide 'uno-ui))
Add support for icons via all-the-icons.
(use-package all-the-icons
:after uno-ui)
(use-package ligature
:after uno-ui
:straight (:type git :host github :repo "mickeynp/ligature.el")
:config
(global-ligature-mode 1))
(use-package which-key
:after uno-ui
:config
(which-key-mode 1))
(use-package olivetti
:after uno-ui
:hook
(uno-prog-mode . uno/ui/olivetti-prog)
(uno-text-mode . uno/ui/olivetti-text)
:general
(uno-leader-define
"tw" '(olivetti-mode :which-key "Toggle writing mode"))
:init
(defun uno/ui/olivetti-prog ()
"Configure Olivetti for prog mode."
(setq-local olivetti-body-width 85))
(defun uno/ui/olivetti-text ()
"Configure Olivetti for text mode."
(setq-local olivetti-body-width 0.6)))