8

Github GitHub - ianpan870102/vscode-dark-plus-emacs-theme: An accurate port of t...

 3 years ago
source link: https://github.com/ianpan870102/vscode-dark-plus-emacs-theme
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Visual Studio Code Dark+ for Emacs


A complete port of the default Visual Studio Code Dark+ theme for Emacs

Introduction:

This theme aims to be as identical as possible to the default Dark+ color scheme used by Visual Studio Code. To see the original Visual Studio Code by Microsoft in action, consider this YouTube video.

If you find any inconsistency between Visual Studio Code's Dark+ and my port, please file an issue and I'll try my best to fix it.

Installation

Installation Method 1: MELPA (Recommended)

vscode-dark-plus-theme is now on MELPA as a package (as of 8. June. 2020)! An example use-package declaration:

(use-package vscode-dark-plus-theme
  :ensure t
  :config
  (load-theme 'vscode-dark-plus t))

Installation Method 2: manual install

Download vscode-dark-plus-theme.el and put it under ~/.emacs.d/themes/ (or ~/.config/emacs/themes/), then add these lines to your init.el:

(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")
; or
(add-to-list 'custom-theme-load-path "~/.config/emacs/themes/")

(load-theme 'vscode-dark-plus t)

Options

You can set a few options to customize some of the faces.

;; Remove the border around the TODO word on org-mode files
(setq vscode-dark-plus-box-org-todo nil)

;; Do not set different heights for some org faces
(setq vscode-dark-plus-scale-org-faces nil)

;; Avoid inverting hl-todo face
(setq vscode-dark-plus-invert-hl-todo nil)

Support for Solaire-Mode

The following snippet turns on solaire-mode support.

(use-package solaire-mode
  :ensure t
  :hook ((change-major-mode . turn-on-solaire-mode)
         (after-revert . turn-on-solaire-mode)
         (ediff-prepare-buffer . solaire-mode)
         (minibuffer-setup . solaire-mode-in-minibuffer))
  :config
  (add-to-list 'solaire-mode-themes-to-face-swap '"vscode-dark-plus")
  (setq solaire-mode-auto-swap-bg t)
  (solaire-global-mode +1))

(use-package vscode-dark-plus-theme
  :ensure t
  :after solaire-mode
  :config
  (load-theme 'vscode-dark-plus t))

More Screenshots

Copyright© 2020-2021 Ian Y.E. Pan

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK