aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-10-17 05:26:11 +0800
committerJesús <heckyel@hyperbola.info>2022-10-17 05:26:11 +0800
commitd43f5f350ab6d47939cf79c6eb1a566343115db9 (patch)
tree0e5b4b5b3d03e992e734e11314a343df2c76faab
parentb34a82ace3282bfba34b57096ca3c59bfa4f280e (diff)
downloademacs-personal-d43f5f350ab6d47939cf79c6eb1a566343115db9.tar.lz
emacs-personal-d43f5f350ab6d47939cf79c6eb1a566343115db9.tar.xz
emacs-personal-d43f5f350ab6d47939cf79c6eb1a566343115db9.zip
Set vscode like default theme
-rw-r--r--README.md2
-rw-r--r--init.el3
-rw-r--r--modules/init-doom-theme.el (renamed from modules/init-theme.el)6
-rw-r--r--modules/init-vscode-theme.el46
4 files changed, 52 insertions, 5 deletions
diff --git a/README.md b/README.md
index 35c6512..042e923 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
<h1 align="center">emacs-personal</h1>
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
diff --git a/init.el b/init.el
index 8fc6662..61aa401 100644
--- a/init.el
+++ b/init.el
@@ -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