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"
}