diff options
author | Jesús <heckyel@hyperbola.info> | 2022-10-17 05:26:11 +0800 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-10-17 05:26:11 +0800 |
commit | d43f5f350ab6d47939cf79c6eb1a566343115db9 (patch) | |
tree | 0e5b4b5b3d03e992e734e11314a343df2c76faab | |
parent | b34a82ace3282bfba34b57096ca3c59bfa4f280e (diff) | |
download | emacs-personal-d43f5f350ab6d47939cf79c6eb1a566343115db9.tar.lz emacs-personal-d43f5f350ab6d47939cf79c6eb1a566343115db9.tar.xz emacs-personal-d43f5f350ab6d47939cf79c6eb1a566343115db9.zip |
Set vscode like default theme
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | init.el | 3 | ||||
-rw-r--r-- | modules/init-doom-theme.el (renamed from modules/init-theme.el) | 6 | ||||
-rw-r--r-- | modules/init-vscode-theme.el | 46 |
4 files changed, 52 insertions, 5 deletions
@@ -1,7 +1,7 @@ <h1 align="center">emacs-personal</h1> Lightweight configuration of emacs with basic utilities plus personal configuration - + ### Installation @@ -70,7 +70,8 @@ (require 'init-security) (require 'init-elpa) ;; theme - (require 'init-theme) + ;; (require 'init-doom-theme) + (require 'init-vscode-theme) ;; Utils (require 'init-utils) ;; GUI diff --git a/modules/init-theme.el b/modules/init-doom-theme.el index 939b30f..7eb4af3 100644 --- a/modules/init-theme.el +++ b/modules/init-doom-theme.el @@ -1,4 +1,4 @@ -;;; init-theme.el --- .Emacs Configuration -*- lexical-binding: t -*- +;;; init-doom-theme.el --- .Emacs Configuration -*- lexical-binding: t -*- ;;; Commentary: ;; @@ -81,6 +81,6 @@ (semidarkcolor) ;; default ) -(provide 'init-theme) +(provide 'init-doom-theme) -;;; init-theme.el ends here +;;; init-doom-theme.el ends here diff --git a/modules/init-vscode-theme.el b/modules/init-vscode-theme.el new file mode 100644 index 0000000..022d583 --- /dev/null +++ b/modules/init-vscode-theme.el @@ -0,0 +1,46 @@ +;;; init-vscode-theme.el --- .Emacs Configuration -*- lexical-binding: t -*- +;;; Commentary: +;; + +;;; Code: + +(use-package vscode-dark-plus-theme + :pin "MELPA" + :ensure t + :config + (load-theme 'vscode-dark-plus t) + + (defun current-dark-color () + "Simple current-dark-color for theme." + (set-cursor-color "#2979FF") + (set-background-color "#1C1E1F") + + (set-face-foreground 'font-lock-string-face "#FFFFFF") + + ;; highlight + (set-face-foreground 'highlight "#F4F4F4") + (set-face-background 'highlight "#004575") + + ;; Modeline + (set-face-foreground 'mode-line "#FFFFFF") + (set-face-foreground 'mode-line-inactive "#f4f4f4") + (set-face-foreground 'mode-line-highlight "#f4f4f4") + + (set-face-background 'mode-line "#6a157e") + (set-face-background 'mode-line-inactive "#7B1FA2") + + (set-face-background 'fringe nil) + + ;; Fix linum current-line highlight + (defface my-linum-hl + '((t :background "#007acc" :foreground "#FFFFFF")) + "Face for the currently active Line number" + :group 'linum)) + + ;; Invoke color + (current-dark-color)) + +(provide 'init-vscode-theme) + +;; End: +;;; init-vscode-theme.el ends here |