Set vscode like default theme

This commit is contained in:
Jesús 2022-10-17 05:26:11 +08:00
parent b34a82ace3
commit d43f5f350a
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766
4 changed files with 52 additions and 5 deletions

View File

@ -1,7 +1,7 @@
<h1 align="center">emacs-personal</h1> <h1 align="center">emacs-personal</h1>
Lightweight configuration of emacs with basic utilities plus personal configuration Lightweight configuration of emacs with basic utilities plus personal configuration
![emacs-personal](https://archive.org/download/libreweb/emacs-personal-1.0.png?raw=true "emacs-personal") ![emacs-personal](https://archive.org/download/libreweb/emacs-personal-1.1.png?raw=true "emacs-personal")
### Installation ### Installation

View File

@ -70,7 +70,8 @@
(require 'init-security) (require 'init-security)
(require 'init-elpa) (require 'init-elpa)
;; theme ;; theme
(require 'init-theme) ;; (require 'init-doom-theme)
(require 'init-vscode-theme)
;; Utils ;; Utils
(require 'init-utils) (require 'init-utils)
;; GUI ;; GUI

View File

@ -1,4 +1,4 @@
;;; init-theme.el --- .Emacs Configuration -*- lexical-binding: t -*- ;;; init-doom-theme.el --- .Emacs Configuration -*- lexical-binding: t -*-
;;; Commentary: ;;; Commentary:
;; ;;
@ -81,6 +81,6 @@
(semidarkcolor) ;; default (semidarkcolor) ;; default
) )
(provide 'init-theme) (provide 'init-doom-theme)
;;; init-theme.el ends here ;;; init-doom-theme.el ends here

View File

@ -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