aboutsummaryrefslogtreecommitdiff
path: root/doom.d/modules/private/oreoline/config.el
blob: 5cd30ad52381822c6fe32cf72cb2fceeb92d8724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
;;; ui/telephone/config.el -*- lexical-binding: t; -*-

(use-package! telephone-line
  :hook (after-init . telephone-line-mode)
  :init
  ; Colors/Faces
  (defface my-accent-dark    '((t (:foreground "white" :background "black"))) "")
  (defface my-evil-dark      '((t (:foreground "black" :background "dim grey"))) "")
  (defface my-accent-light   '((t (:foreground "black" :background "dim grey"))) "")
  (defface my-evil-light     '((t (:foreground "white" :background "blue"))) "")

  ; Seperators
  (setq telephone-line-primary-left-separator    'telephone-line-halfsin-left)
  (setq telephone-line-faces
        '((evil . (my-evil-dark . my-evil-dark))
          (modal . telephone-line-modal-face)
          (ryo . telephone-line-ryo-modal-face)
          (accent . (my-accent-dark . my-accent-dark))
          (nil mode-line . mode-line-inactive)))
  (when (featurep! +light)
    (setq telephone-line-faces
          '((evil . (my-evil-light . my-evil-light))
            (modal . telephone-line-modal-face)
            (ryo . telephone-line-ryo-modal-face)
            (accent . (my-accent-light . my-accent-light))
            (nil mode-line . mode-line-inactive))))

  ; LHS
  (setq telephone-line-lhs
        '((evil   . (telephone-line-evil-tag-segment))
          (accent . (telephone-line-vc-segment
                     telephone-line-filesize-segment
                     telephone-line-projectile-buffer-segment
                     telephone-line-erc-modified-channels-segment
                     telephone-line-process-segment))))

  ; RHS
  (setq telephone-line-rhs
        '((nil    . (telephone-line-misc-info-segment))
          (accent . (telephone-line-major-mode-segment
                     telephone-line-buffer-modified-segment
                     telephone-line-flycheck-segment))
          (evil   . (telephone-line-airline-position-segment))))
  :config
  (size-indication-mode +1))

(use-package! evil-anzu
  :after-call evil-ex-start-search evil-ex-start-word-search evil-ex-search-activate-highlight)