emacs的Vim torte配色方案

emacs的Vim torte配色方案,vim,emacs,Vim,Emacs,我想在emacs 24中使用tortevim配色方案(请参阅并搜索“torte”)。此配色方案是否有易于安装的emacs端口 谷歌搜索+Emacs+torte基本上没有结果。也许ported colorscheme有不同的名称?或者它根本就没有被移植?使用我为您创建了一个粗略的端口,这样您就可以使用devil IDE并假装使用的是一个真正的编辑器 ;;; torte-theme.el --- Emacs theme with a dark background. ;; Copyright (C

我想在emacs 24中使用
torte
vim配色方案(请参阅并搜索
“torte”
)。此配色方案是否有易于安装的emacs端口

谷歌搜索
+Emacs
+torte
基本上没有结果。也许ported colorscheme有不同的名称?或者它根本就没有被移植?

使用我为您创建了一个粗略的端口,这样您就可以使用devil IDE并假装使用的是一个真正的编辑器

;;; torte-theme.el --- Emacs theme with a dark background.

;; Copyright (C) 2014 , connermcd

;; Author: connermcd
;; 
;; Version: 0.1
;; Package-Requires: ((emacs "24"))
;; Created with emacs-theme-generator, https://github.com/mswift42/theme-creator.


;; 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 <http://www.gnu.org/licenses/>.

;; This file is not part of Emacs.

;;; Commentary:

;;; Code:

 (deftheme torte)
 (let ((class '((class color) (min-colors 89)))
       (fg1 "#a89797")
       (fg2 "#998a8a")
       (fg3 "#8b7d7d")
       (fg4 "#7d7171")
       (bg1 "#2D2D2D")
       (bg2 "#3b3b3b")
       (bg3 "#4a4a4a")
       (bg4 "#5a5a5a")
       (key2 "#529cc9")
       (key3 "#2e7fab")
       (builtin "#E6AB0F")
       (keyword "#3090c2")
       (const   "#74DB97")
       (comment "#5b87d4")
       (func    "#9EC9CF")
       (str     "#D747CB")
       (type    "#74DB97")
       (var     "#9EC9CF")
       (warning "#ff0000"))
   (custom-theme-set-faces
   'torte
        `(default ((,class (:background ,bg1 :foreground ,fg1))))
        `(font-lock-builtin-face ((,class (:foreground ,builtin))))
        `(font-lock-comment-face ((,class (:foreground ,comment))))
    `(font-lock-negation-char-face ((,class (:foreground ,const))))
    `(font-lock-reference-face ((,class (:foreground ,const))))
    `(font-lock-constant-face ((,class (:foreground ,const))))
        `(font-lock-doc-face ((,class (:foreground ,comment))))
        `(font-lock-function-name-face ((,class (:foreground ,func :bold t))))
        `(font-lock-keyword-face ((,class (:bold ,class :foreground ,keyword))))
        `(font-lock-string-face ((,class (:foreground ,str))))
        `(font-lock-type-face ((,class (:foreground ,type ))))
        `(font-lock-variable-name-face ((,class (:foreground ,var))))
        `(font-lock-warning-face ((,class (:foreground ,warning :background ,bg2))))
        `(region ((,class (:background ,fg1 :foreground ,bg1))))
        `(highlight ((,class (:foreground ,fg3 :background ,bg3))))
    `(hl-line ((,class (:background  ,bg2))))
    `(fringe ((,class (:background ,bg2 :foreground ,fg4))))
    `(cursor ((,class (:background ,bg3))))
        `(show-paren-match-face ((,class (:background ,warning))))
        `(isearch ((,class (:bold t :foreground ,warning :background ,bg3))))
        `(mode-line ((,class (:box (:line-width 1 :color nil) :bold t :foreground ,fg4 :background ,bg2))))
        `(mode-line-inactive ((,class (:box (:line-width 1 :color nil :style pressed-button) :foreground ,key3 :background ,bg1 :weight normal))))
        `(mode-line-buffer-id ((,class (:bold t :foreground ,func :background nil))))
    `(mode-line-highlight ((,class (:foreground ,keyword :box nil :weight bold))))
        `(mode-line-emphasis ((,class (:foreground ,fg1))))
    `(vertical-border ((,class (:foreground ,fg3))))
        `(minibuffer-prompt ((,class (:bold t :foreground ,keyword))))
        `(default-italic ((,class (:italic t))))
    `(link ((,class (:foreground ,const :underline t))))
    `(org-code ((,class (:foreground ,fg2))))
    `(org-hide ((,class (:foreground ,fg4))))
        `(org-level-1 ((,class (:bold t :foreground ,fg2 :height 1.1))))
        `(org-level-2 ((,class (:bold nil :foreground ,fg3))))
        `(org-level-3 ((,class (:bold t :foreground ,fg4))))
        `(org-level-4 ((,class (:bold nil :foreground ,bg4))))
        `(org-date ((,class (:underline t :foreground ,var) )))
        `(org-footnote  ((,class (:underline t :foreground ,fg4))))
        `(org-link ((,class (:underline t :foreground ,type ))))
        `(org-special-keyword ((,class (:foreground ,func))))
        `(org-block ((,class (:foreground ,fg3))))
        `(org-quote ((,class (:inherit org-block :slant italic))))
        `(org-verse ((,class (:inherit org-block :slant italic))))
        `(org-todo ((,class (:box (:line-width 1 :color ,fg3) :foreground ,keyword :bold t))))
        `(org-done ((,class (:box (:line-width 1 :color ,bg3) :bold t :foreground ,bg4))))
        `(org-warning ((,class (:underline t :foreground ,warning))))
        `(org-agenda-structure ((,class (:weight bold :foreground ,fg3 :box (:color ,fg4) :background ,bg3))))
        `(org-agenda-date ((,class (:foreground ,var :height 1.1 ))))
        `(org-agenda-date-weekend ((,class (:weight normal :foreground ,fg4))))
        `(org-agenda-date-today ((,class (:weight bold :foreground ,keyword :height 1.4))))
        `(org-agenda-done ((,class (:foreground ,bg4))))
    `(org-scheduled ((,class (:foreground ,type))))
        `(org-scheduled-today ((,class (:foreground ,func :weight bold :height 1.2))))
    `(org-ellipsis ((,class (:foreground ,builtin))))
    `(org-verbatim ((,class (:foreground ,fg4))))
        `(org-document-info-keyword ((,class (:foreground ,func))))
    `(font-latex-bold-face ((,class (:foreground ,type))))
    `(font-latex-italic-face ((,class (:foreground ,key3 :italic t))))
    `(font-latex-string-face ((,class (:foreground ,str))))
    `(font-latex-match-reference-keywords ((,class (:foreground ,const))))
    `(font-latex-match-variable-keywords ((,class (:foreground ,var))))
    `(ido-only-match ((,class (:foreground ,warning))))
    `(org-sexp-date ((,class (:foreground ,fg4))))
    `(ido-first-match ((,class (:foreground ,keyword :bold t))))
    `(gnus-header-content ((,class (:foreground ,keyword))))
    `(gnus-header-from ((,class (:foreground ,var))))
    `(gnus-header-name ((,class (:foreground ,type))))
    `(gnus-header-subject ((,class (:foreground ,func :bold t))))
    `(mu4e-view-url-number-face ((,class (:foreground ,type))))
    `(mu4e-cited-1-face ((,class (:foreground ,fg2))))
    `(mu4e-cited-7-face ((,class (:foreground ,fg3))))
    `(mu4e-header-marks-face ((,class (:foreground ,type))))
    `(ffap ((,class (:foreground ,fg4))))
    `(js2-private-function-call ((,class (:foreground ,const))))
    `(js2-jsdoc-html-tag-delimiter ((,class (:foreground ,str))))
    `(js2-jsdoc-html-tag-name ((,class (:foreground ,key2))))
    `(js2-external-variable ((,class (:foreground ,type  ))))
        `(js2-function-param ((,class (:foreground ,const))))
        `(js2-jsdoc-value ((,class (:foreground ,str))))
        `(js2-private-member ((,class (:foreground ,fg3))))
        `(js3-warning-face ((,class (:underline ,keyword))))
        `(js3-error-face ((,class (:underline ,warning))))
        `(js3-external-variable-face ((,class (:foreground ,var))))
        `(js3-function-param-face ((,class (:foreground ,key3))))
        `(js3-jsdoc-tag-face ((,class (:foreground ,keyword))))
        `(js3-instance-member-face ((,class (:foreground ,const))))
    `(warning ((,class (:foreground ,warning)))) 
    `(ac-completion-face ((,class (:underline t :foreground ,keyword))))
    `(info-quoted-name ((,class (:foreground ,builtin))))
    `(info-string ((,class (:foreground ,str))))
    `(icompletep-determined ((,class :foreground ,builtin)))
        `(undo-tree-visualizer-current-face ((,class :foreground ,builtin)))
        `(undo-tree-visualizer-default-face ((,class :foreground ,fg2)))
        `(undo-tree-visualizer-unmodified-face ((,class :foreground ,var)))
        `(undo-tree-visualizer-register-face ((,class :foreground ,type)))
    `(slime-repl-inputed-output-face ((,class (:foreground ,type))))
        `(trailing-whitespace ((,class :foreground nil :background ,warning)))
        `(rainbow-delimiters-depth-1-face ((,class :foreground ,fg1)))
        `(rainbow-delimiters-depth-2-face ((,class :foreground ,type)))
        `(rainbow-delimiters-depth-3-face ((,class :foreground ,var)))
        `(rainbow-delimiters-depth-4-face ((,class :foreground ,const)))
        `(rainbow-delimiters-depth-5-face ((,class :foreground ,keyword)))
        `(rainbow-delimiters-depth-6-face ((,class :foreground ,fg1)))
        `(rainbow-delimiters-depth-7-face ((,class :foreground ,type)))
        `(rainbow-delimiters-depth-8-face ((,class :foreground ,var)))
        `(magit-item-highlight ((,class :background ,bg3)))
        `(magit-section-heading        ((,class (:foreground ,keyword :weight bold))))
        `(magit-hunk-heading           ((,class (:background ,bg3))))
        `(magit-section-highlight      ((,class (:background ,bg2))))
        `(magit-hunk-heading-highlight ((,class (:background ,bg3))))
        `(magit-diff-context-highlight ((,class (:background ,bg3 :foreground ,fg3))))
        `(magit-diffstat-added   ((,class (:foreground ,type))))
        `(magit-diffstat-removed ((,class (:foreground ,var))))
        `(magit-process-ok ((,class (:foreground ,func :weight bold))))
        `(magit-process-ng ((,class (:foreground ,warning :weight bold))))
        `(magit-branch ((,class (:foreground ,const :weight bold))))
        `(magit-log-author ((,class (:foreground ,fg3))))
        `(magit-hash ((,class (:foreground ,fg2))))
        `(magit-diff-file-header ((,class (:foreground ,fg2 :background ,bg3))))
        `(lazy-highlight ((,class (:foreground ,fg2 :background ,bg3))))
        `(term ((,class (:foreground ,fg1 :background ,bg1))))
        `(term-color-black ((,class (:foreground ,bg3 :background ,bg3))))
        `(term-color-blue ((,class (:foreground ,func :background ,func))))
        `(term-color-red ((,class (:foreground ,keyword :background ,bg3))))
        `(term-color-green ((,class (:foreground ,type :background ,bg3))))
        `(term-color-yellow ((,class (:foreground ,var :background ,var))))
        `(term-color-magenta ((,class (:foreground ,builtin :background ,builtin))))
        `(term-color-cyan ((,class (:foreground ,str :background ,str))))
        `(term-color-white ((,class (:foreground ,fg2 :background ,fg2))))
        `(rainbow-delimiters-unmatched-face ((,class :foreground ,warning)))
        `(helm-header ((,class (:foreground ,fg2 :background ,bg1 :underline nil :box nil))))
        `(helm-source-header ((,class (:foreground ,keyword :background ,bg1 :underline nil :weight bold))))
        `(helm-selection ((,class (:background ,bg2 :underline nil))))
        `(helm-selection-line ((,class (:background ,bg2))))
        `(helm-visible-mark ((,class (:foreground ,bg1 :background ,bg3))))
        `(helm-candidate-number ((,class (:foreground ,bg1 :background ,fg1))))
        `(helm-separator ((,class (:foreground ,type :background ,bg1))))
        `(helm-time-zone-current ((,class (:foreground ,builtin :background ,bg1))))
        `(helm-time-zone-home ((,class (:foreground ,type :background ,bg1))))
        `(helm-buffer-not-saved ((,class (:foreground ,type :background ,bg1))))
        `(helm-buffer-process ((,class (:foreground ,builtin :background ,bg1))))
        `(helm-buffer-saved-out ((,class (:foreground ,fg1 :background ,bg1))))
        `(helm-buffer-size ((,class (:foreground ,fg1 :background ,bg1))))
        `(helm-ff-directory ((,class (:foreground ,func :background ,bg1 :weight bold))))
        `(helm-ff-file ((,class (:foreground ,fg1 :background ,bg1 :weight normal))))
        `(helm-ff-executable ((,class (:foreground ,key2 :background ,bg1 :weight normal))))
        `(helm-ff-invalid-symlink ((,class (:foreground ,key3 :background ,bg1 :weight bold))))
        `(helm-ff-symlink ((,class (:foreground ,keyword :background ,bg1 :weight bold))))
        `(helm-ff-prefix ((,class (:foreground ,bg1 :background ,keyword :weight normal))))
        `(helm-grep-cmd-line ((,class (:foreground ,fg1 :background ,bg1))))
        `(helm-grep-file ((,class (:foreground ,fg1 :background ,bg1))))
        `(helm-grep-finish ((,class (:foreground ,fg2 :background ,bg1))))
        `(helm-grep-lineno ((,class (:foreground ,fg1 :background ,bg1))))
        `(helm-grep-match ((,class (:foreground nil :background nil :inherit helm-match))))
        `(helm-grep-running ((,class (:foreground ,func :background ,bg1))))
        `(helm-moccur-buffer ((,class (:foreground ,func :background ,bg1))))
        `(helm-source-go-package-godoc-description ((,class (:foreground ,str))))
        `(helm-bookmark-w3m ((,class (:foreground ,type))))
        `(company-echo-common ((,class (:foreground ,bg1 :background ,fg1))))
        `(company-preview ((,class (:background ,bg1 :foreground ,key2))))
        `(company-preview-common ((,class (:foreground ,bg2 :foreground ,fg3))))
        `(company-preview-search ((,class (:foreground ,type :background ,bg1))))
        `(company-scrollbar-bg ((,class (:background ,bg3))))
        `(company-scrollbar-fg ((,class (:foreground ,keyword))))
        `(company-tooltip ((,class (:foreground ,fg2 :background ,bg1 :bold t))))
        `(company-tooltop-annotation ((,class (:foreground ,const))))
        `(company-tooltip-common ((,class ( :foreground ,fg3))))
        `(company-tooltip-common-selection ((,class (:foreground ,str))))
        `(company-tooltip-mouse ((,class (:inherit highlight))))
        `(company-tooltip-selection ((,class (:background ,bg3 :foreground ,fg3))))
        `(company-template-field ((,class (:inherit region))))
        `(web-mode-builtin-face ((,class (:inherit ,font-lock-builtin-face))))
        `(web-mode-comment-face ((,class (:inherit ,font-lock-comment-face))))
        `(web-mode-constant-face ((,class (:inherit ,font-lock-constant-face))))
        `(web-mode-keyword-face ((,class (:foreground ,keyword))))
        `(web-mode-doctype-face ((,class (:inherit ,font-lock-comment-face))))
        `(web-mode-function-name-face ((,class (:inherit ,font-lock-function-name-face))))
        `(web-mode-string-face ((,class (:foreground ,str))))
        `(web-mode-type-face ((,class (:inherit ,font-lock-type-face))))
        `(web-mode-html-attr-name-face ((,class (:foreground ,func))))
        `(web-mode-html-attr-value-face ((,class (:foreground ,keyword))))
        `(web-mode-warning-face ((,class (:inherit ,font-lock-warning-face))))
        `(web-mode-html-tag-face ((,class (:foreground ,builtin))))
        `(jde-java-font-lock-package-face ((t (:foreground ,var))))
        `(jde-java-font-lock-public-face ((t (:foreground ,keyword))))
        `(jde-java-font-lock-private-face ((t (:foreground ,keyword))))
        `(jde-java-font-lock-constant-face ((t (:foreground ,const))))
        `(jde-java-font-lock-modifier-face ((t (:foreground ,key3))))
        `(jde-jave-font-lock-protected-face ((t (:foreground ,keyword))))
        `(jde-java-font-lock-number-face ((t (:foreground ,var))))))

;;;###autoload
(when load-file-name
  (add-to-list 'custom-theme-load-path
               (file-name-as-directory (file-name-directory load-file-name))))

(provide-theme 'torte)

;; Local Variables:
;; no-byte-compile: t
;; End:

;;; torte-theme.el ends here
;;;torte-theme.el——带有深色背景的Emacs主题。
;; 版权所有(C)2014,康奈姆CD
;; 作者:connermcd
;; 
;; 版本:0.1
;; 包要求:((emacs“24”))
;; 使用emacs主题生成器创建,https://github.com/mswift42/theme-creator.
;; 此程序是免费软件:您可以重新发布和/或修改它
;; 它是根据GNU通用公共许可证的条款发布的
;; 自由软件基金会,或者许可证的第3版,或者
;; (由您选择)任何更高版本。
;; 这个节目的发布是希望它会有用,
;; 但无任何保证;甚至没有任何关于
;; 适销性或适合某一特定目的。见
;; 有关更多详细信息,请参阅GNU通用公共许可证。
;; 您应该已经收到GNU通用公共许可证的副本
;; 和这个节目一起。如果没有,请参阅。
;; 此文件不是Emacs的一部分。
;;; 评论:
;;; 代码:
(解除侵权)
(让((类别’((类别颜色)(最小颜色89)))
(fg1“a89797”)
(fg2“#998a8a”)
(fg3“8b7d7d”)
(fg4“7d7171”)
(bg1“2D2D”)
(bg2“#3B3B”)
(bg3“#4a4a4a”)
(bg4“5A5A”)
(键2“#529cc9”)
(键3“#2e7fab”)
(内置“#E6AB0F”)
(关键词“#3090c2”)
(常数“#74DB97”)
(评论“#5b87d4”)
(func“#9EC9CF”)
(str“D747CB”)
(键入“#74DB97”)
(var“#9EC9CF”)
(警告“#ff0000”))
(自定义主题集面)
“侵权行为
`(默认值(,类(:背景,bg1:前景,fg1)))
`(字体锁定内置面(,类(:前景,内置)))
`(字体锁定注释面(,类(:前景,注释)))
`(字体锁定否定字符面(,类(:前景,常量)))
`(字体锁定参考面(,类(:前景,常量)))
`(字体锁定常量面(,类(:前景,常量)))
`(字体锁定文档面(,类(:前景,注释)))
`(字体锁定函数名面(,类(:前台,函数:粗体t)))
`(字体锁定关键字面(,类(:粗体,类:前景,关键字)))
`(字体锁定字符串面(,类(:前台,str)))
`(字体锁定类型面(,类(:前景,类型)))
`(字体锁定变量名面(,类(:前台,变量)))
`(字体锁定警告面(,类(:前景,警告:背景,bg2)))
`(区域(,类(:背景,fg1:前景,bg1)))
`(高亮显示(,类(:前景,fg3:背景,bg3)))
`(hl线(,类(:背景,bg2)))
`(条纹(,等级(:背景,背景2:前景,fg4)))
`(光标(,类(:背景,bg3)))
`(显示部件匹配面(,类(:背景,警告)))
`(isearch(,class(:粗体t:前景,警告:背景,bg3)))
`(模式行(,类(:框(:线宽1:颜色为零):粗体t:前景,fg4:背景,bg2)))
`(模式行不活动(,类(:框(:线宽1:颜色为零:样式按下按钮):前景,键3:背景,bg1:权重正常)))
`(模式行缓冲区id(,类(:bold t:前景,func:背景nil)))
`(模式行高亮显示(,类(:前景,关键字:框nil:weight粗体)))
`(模式线强调(,类(:前景,fg1)))
`(垂直边框(,类(:前景,fg3)))
`(小缓冲区提示(,类(:粗体t:前景,关键字)))
`(默认斜体(,类(:斜体t)))
`(链接(,类(:前景,常量:下划线t)))
`(组织机构代码(,类别(:前台,fg2)))
`(组织隐藏(,类(:前台,fg4)))
`(组织级别1(,类(:粗体t:前景,fg2:高度1.1)))
`(组织级别2(,类(:粗体零:前景,fg3)))
`(组织级别3(,类(:粗体t:前景,fg4)))
`(组织级别4(,类(:粗体零:前景,bg4)))
`(组织日期(,类别(:下划线t:前景,变量)))
`(组织脚注(,类(:下划线t:前景,fg4)))
`(组织链接(,类(:下划线t:前景,类型)))
`(组织特殊关键字(,类(:前台,函数)))
`(组织块(,类(:前台,fg3)))
`(组织引号(,类(:继承组织块:倾斜斜体)))
`(组织诗((,类(:继承组织块:倾斜斜体)))
`(组织todo(,类(:框(:线宽1:颜色,fg3):前景,关键字:粗体t)))
`(组织完成(,类(:框(:线宽1:颜色,bg3):粗体t:前景,bg4)))
`(组织警告(,类(:下划线t:前景,警告)))
`(组织议程结构(,类(:权重粗体:前景,fg3:框(:颜色,fg4:背景,bg3)))
`(组织议程日期(,类别(:前台,变量:高度1.1)))
`(组织日程日期周末(,班级(:体重正常:前景,fg4)))
`(今天组织议程日期(,班级(:粗体:前景,关键字:身高1.4)))
`(组织议程完成(,类(:前台,bg4)))
`(组织计划(,类(:前台,类型)))
`(今天预定的组织(,班级(:前台,职能:体重粗体:身高1.2)))
`(组织省略号(,类(:前台,内置)))
`(组织逐字(,类(:前台,fg4)))
`(组织文档信息关键字(,类(:前台,函数)))
`(字体:粗体(,类(:前景,类型)))
`(字体斜体(,类(:前景,键3:italic t)))
`(字体:字符串)