init-vscode-theme.el 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ;;; init-vscode-theme.el --- .Emacs Configuration -*- lexical-binding: t -*-
  2. ;;; Commentary:
  3. ;;
  4. ;;; Code:
  5. (use-package vscode-dark-plus-theme
  6. :pin "MELPA"
  7. :ensure t
  8. :config
  9. (load-theme 'vscode-dark-plus t)
  10. (defun current-dark-color ()
  11. "Simple current-dark-color for theme."
  12. (set-cursor-color "#2979FF")
  13. (set-background-color "#1C1E1F")
  14. (set-face-foreground 'font-lock-string-face "#FFFFFF")
  15. ;; highlight
  16. (set-face-foreground 'highlight "#F4F4F4")
  17. (set-face-background 'highlight "#004575")
  18. ;; Modeline
  19. (set-face-foreground 'mode-line "#FFFFFF")
  20. (set-face-foreground 'mode-line-inactive "#f4f4f4")
  21. (set-face-foreground 'mode-line-highlight "#f4f4f4")
  22. (set-face-background 'mode-line "#6a157e")
  23. (set-face-background 'mode-line-inactive "#7B1FA2")
  24. (set-face-background 'fringe nil)
  25. ;; Fix linum current-line highlight
  26. (defface my-linum-hl
  27. '((t :background "#007acc" :foreground "#FFFFFF"))
  28. "Face for the currently active Line number"
  29. :group 'linum))
  30. ;; Invoke color
  31. (current-dark-color))
  32. (provide 'init-vscode-theme)
  33. ;; End:
  34. ;;; init-vscode-theme.el ends here