From 0a01dd905a2e894b3894ca0306a4ba2185cd4130 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Tue, 17 Jan 2023 17:11:30 -0800 Subject: [PATCH] Make tty experience more tolerable --- early-init.el | 5 +++-- my-theme-theme.el | 31 +++++++++++++++---------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/early-init.el b/early-init.el index 104e424..410dd84 100755 --- a/early-init.el +++ b/early-init.el @@ -1,8 +1,9 @@ (setq native-comp-speed -1) +;; (setq package-enable-at-startup nil) ;; Anti-flashbang -(custom-set-faces - '(default ((t (:foreground "#b7c9ee" :background "#0d1017"))))) +;;(custom-set-faces +;; '(default ((t (:foreground "#b7c9ee" :background "#0d1017"))))) (menu-bar-mode -1) (tool-bar-mode -1) diff --git a/my-theme-theme.el b/my-theme-theme.el index 1401c76..f9e0c41 100755 --- a/my-theme-theme.el +++ b/my-theme-theme.el @@ -9,9 +9,8 @@ (if (plist-get args :bg) (if (nth type (plist-get args :bg)) `(:background ,(nth type (plist-get args :bg))))))))) `(,face - ,`(,(funcall build-face '((class color) (min-colors 257)) 0 args) - ,(funcall build-face '((class color) (min-colors 256)) 1 args) - ,(funcall build-face '((class color) (min-colors 16)) 2 args)))))) + ,`(,(funcall build-face '((min-colors 256)) 0 args) + ,(funcall build-face '((min-colors 8)) 1 args)))))) (color-join (lambda (list) (format "#%02x%02x%02x" (ash (nth 0 list) -8) @@ -49,24 +48,24 @@ (append `(,(funcall brighten (car color) amount)) (cdr color)))) - ;; name full 256 16 - (common-fg '("#b7c9ee" "white" "white")) - (common-bg '("#0d1017" "black" "black")) - (modeline '("#156570" nil nil)) + ;; name full 8 + (common-fg '("#b7c9ee" "white")) + (common-bg '("#0d1017" "black")) + (modeline '("#156570" "white")) (highlight (funcall brighten-first common-bg 0.15)) - (comment '("#42767d" nil nil)) - (doc '("#6a866f" nil nil)) - (keyword '("#349672" nil nil)) - (preprocessor '("#5ca9af" nil nil)) - (function '("#5fc995" nil nil)) - (variable '("#6ec5b1" nil nil)) - (string '("#15e04a" nil nil)) - (type '("#17b343" nil nil)) + (comment '("#42767d" "red")) + (doc '("#6a866f" "red")) + (keyword '("#349672" "cyan")) + (preprocessor '("#5ca9af" "cyan")) + (function '("#5fc995" "white")) + (variable '("#6ec5b1" "white")) + (string '("#15e04a" "green")) + (type '("#17b343" "white")) (lsp-hover-highlight (funcall brighten-first common-bg 0.05)) (company-bg (funcall brighten-first common-bg 0.1)) - (peek-code '("#0e151a" nil nil)) + (peek-code '("#0e151a" nil)) ;; Extra colors #1fa345 ) (custom-theme-set-faces