aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorodave <aryadevchavali1@gmail.com>2020-03-17 16:07:02 +0000
committerodave <aryadevchavali1@gmail.com>2020-03-17 16:13:55 +0000
commitebdeb96ac9bc57454c22ace8bbab38463616ad02 (patch)
tree20b650fc862afb0021c9c5591735054ffa36fbed
parentd3496f58ac2e9c4d7500f8e88b383357f50e4db6 (diff)
downloaddotfiles-ebdeb96ac9bc57454c22ace8bbab38463616ad02.tar.gz
dotfiles-ebdeb96ac9bc57454c22ace8bbab38463616ad02.tar.bz2
dotfiles-ebdeb96ac9bc57454c22ace8bbab38463616ad02.zip
+my first and very own module
Oreoline is a simple modeline using telephone-line. It does most of what I need and decreases my load time by a bit.
-rw-r--r--doom.d/modules/private/oreoline/config.el48
-rw-r--r--doom.d/modules/private/oreoline/packages.el5
2 files changed, 53 insertions, 0 deletions
diff --git a/doom.d/modules/private/oreoline/config.el b/doom.d/modules/private/oreoline/config.el
new file mode 100644
index 0000000..5cd30ad
--- /dev/null
+++ b/doom.d/modules/private/oreoline/config.el
@@ -0,0 +1,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)
diff --git a/doom.d/modules/private/oreoline/packages.el b/doom.d/modules/private/oreoline/packages.el
new file mode 100644
index 0000000..9479896
--- /dev/null
+++ b/doom.d/modules/private/oreoline/packages.el
@@ -0,0 +1,5 @@
+;; -*- no-byte-compile: t; -*-
+;;; ui/telephone/packages.el
+
+(package! telephone-line)
+(package! evil-anzu)