Shaving MILLISECONDS off our startup time!!! Fuck yes! I've measured the average startup time to be 0.68s in the previous commit, and an average of 0.52 with this commit.
43 lines
1.7 KiB
EmacsLisp
43 lines
1.7 KiB
EmacsLisp
;;; syd-ui.el -*- lexical-binding: t; -*-
|
|
|
|
;; Show possible completions for a partially-entered key sequence.
|
|
(use-package which-key
|
|
:hook (on-first-input . which-key-mode)
|
|
:custom ((which-key-allow-evil-operators t)
|
|
(which-key-show-operator-state-maps t)))
|
|
|
|
;; Beautiful theme in dark and light.
|
|
(use-package kanagawa-themes
|
|
:config
|
|
(load-theme 'kanagawa-wave t))
|
|
|
|
(use-package emacs
|
|
:custom
|
|
;; Allow the opening of new minibuffers from inside existing minibuffers.
|
|
((enable-recursive-minibuffers t)
|
|
;; Hide commands in M-x which do not work in the current mode.
|
|
(read-extended-command-predicate #'command-completion-default-include-p))
|
|
:config
|
|
;; Disable blinking cursor. Aesthetically, I personally don't fancy it;
|
|
;; technically, it doesn't play well with `evil-terminal-cursor-changer'.
|
|
(blink-cursor-mode -1))
|
|
|
|
;; Vertico is a simple completion engine that replaces Emacs' built-in
|
|
;; completion engine, achieving Just Works™ compatibility. This is in contrast
|
|
;; to e.g. Helm and Ivy, which spawn ecosystems orthogonal to Emacs, and
|
|
;; diametrically-opposed to each other.
|
|
(use-package vertico
|
|
:hook (on-first-input . vertico-mode))
|
|
|
|
;; Orderless provides a completion style that divides the pattern into
|
|
;; space-separated components, and matches candidates that match all of the
|
|
;; components in any order. Each component can match in any one of several
|
|
;; ways: literally, as a regexp, as an initialism, in the flex style, or as
|
|
;; multiple word prefixes. By default, regexp and literal matches are enabled.
|
|
(use-package orderless
|
|
:custom ((completion-styles '(orderless basic))
|
|
(completion-category-overrides
|
|
'((file (styles basic partial-completion))))))
|
|
|
|
(provide 'syd-ui)
|