You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

1.1 KiB

UI

Package

Define UI package.

  (use-package emacs
    :after uno
    :config
    (provide 'uno-ui))

Icons

Add support for icons via all-the-icons.

  (use-package all-the-icons
    :after uno-ui)

Ligatures

  (use-package ligature
    :after uno-ui
    :straight (:type git :host github :repo "mickeynp/ligature.el")
    :config
    (global-ligature-mode 1))

Which Key

  (use-package which-key
    :after uno-ui
    :config
    (which-key-mode 1))

Olivetti

  (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)))