Set vscode like default theme
This commit is contained in:
parent
b34a82ace3
commit
d43f5f350a
@ -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
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
|
3
init.el
3
init.el
@ -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
|
||||||
|
@ -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
|
46
modules/init-vscode-theme.el
Normal file
46
modules/init-vscode-theme.el
Normal 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
|
Loading…
x
Reference in New Issue
Block a user