emacs themes site
1.0.0
这是Emacs主题库网站的源代码。
要添加一个新主题,您必须创建至少4个文件:
.json文件,这是主题的实际食谱;.png文件,它是在正面和索引页面上显示的图像;.png大型图像,将在主题页面上列出;将一个400x200 .png文件添加到/root/rest/imgs-small目录。这将是首页或索引页面上显示的小图像。您将必须将此名称添加到食谱文件中。
添加想要/root/Assets/imgs目录的任何数量的.png (屏幕截图)文件。这些将显示在主题页面上。您将必须将此名称添加到食谱文件中。
将.el文件添加到/root/Assets/local-SRC目录。您可以按照自己的意愿命名,但我强烈鼓励使用表单的名称: [theme-name]-theme-source-code.el 。您将必须将此名称添加到食谱文件中。
将.json文件添加到/食谱目录。您可以按照自己的意愿命名,但我强烈鼓励将其命名为您的主题。该文件必须具有此结构:
{
"name" : "[Theme Name]" ,
"description" : "[Some description]" ,
"remoteSrc" : "[Source code source]" ,
"localSrc" : "./assets/local-src/[name of the source code file from /root/assets/local-src]" ,
"author" : "[Name of the Author/s]" ,
"largeImgs" : [
"./assets/imgs/[large-img1-name]" ,
"./assets/imgs/[large-img2-name]" ,
] ,
"tags" : [
"[tag1]" ,
"[tag2]" ,
] ,
"available" : "[true or false (depending on whether the theme is submitted to MELPA)] " ,
"smallImg" : "./assets/imgs-small/[small-img-name]"
}这是定期食谱文件的样子的一个示例:
{
"name" : "Solarized Themes" ,
"description" : "Solarized for Emacs is an Emacs port of the Solarized theme for vim, developed by Ethan Schoonover." ,
"remoteSrc" : "https://github.com/bbatsov/solarized-emacs" ,
"localSrc" : "./assets/local-src/solarized-themes-source-code.el" ,
"author" : "Bozhidar Batsov & Thomas Fru00f6ssman" ,
"largeImgs" : [
"./assets/imgs/solarized-dark.png" ,
"./assets/imgs/solarized-dark-bis.png" ,
"./assets/imgs/solarized-light.png" ,
"./assets/imgs/solarized-light-bis.png"
] ,
"tags" : [
"dark" ,
"emacs 23" ,
"light" ,
"popular" ,
"solarized"
] ,
"available" : true ,
"smallImg" : "./assets/imgs-small/solarized-dark.png"
}