emacsfodder / tmtheme-to-emacs Goto Github PK
View Code? Open in Web Editor NEWScript to convert a textmate (or SublimeText) tmTheme to Emacs deftheme
License: GNU General Public License v3.0
Script to convert a textmate (or SublimeText) tmTheme to Emacs deftheme
License: GNU General Public License v3.0
Example: http://tmtheme-editor.herokuapp.com/#/theme/Paraíso%20(Light)
It gets converted as paraíso-(light)
, which doesn't work in Elisp.
Hi Jason,
Thanks for putting together this really handy tool!
I just tried to convert Dayle Rees' colour-schemes, but got this error with some of them notably all the light ones:
~/Downloads/colour-schemes-master/sublime/light tm2deftheme earthsong-light.tmTheme
/Library/Ruby/Gems/2.0.0/gems/tm2deftheme-0.1.5/lib/tmtheme-to-deftheme.rb:107:in `palette_average_values': undefined method `/' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/2.0.0/gems/tm2deftheme-0.1.5/lib/tmtheme-to-deftheme.rb:127:in `make_rainbow_parens'
from /Library/Ruby/Gems/2.0.0/gems/tm2deftheme-0.1.5/lib/tmtheme-to-deftheme.rb:167:in `convert'
from /Library/Ruby/Gems/2.0.0/gems/tm2deftheme-0.1.5/lib/tmtheme-to-deftheme.rb:18:in `initialize'
from /Library/Ruby/Gems/2.0.0/gems/tm2deftheme-0.1.5/bin/tm2deftheme:31:in `new'
from /Library/Ruby/Gems/2.0.0/gems/tm2deftheme-0.1.5/bin/tm2deftheme:31:in `block (2 levels) in <top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/slop-3.5.0/lib/slop.rb:260:in `call'
from /Library/Ruby/Gems/2.0.0/gems/slop-3.5.0/lib/slop.rb:260:in `parse!'
from /Library/Ruby/Gems/2.0.0/gems/slop-3.5.0/lib/slop.rb:65:in `parse!'
from /Library/Ruby/Gems/2.0.0/gems/slop-3.5.0/lib/slop.rb:54:in `parse'
from /Library/Ruby/Gems/2.0.0/gems/tm2deftheme-0.1.5/bin/tm2deftheme:5:in `<top (required)>'
from /usr/bin/tm2deftheme:23:in `load'
from /usr/bin/tm2deftheme:23:in `<main>'
I'm afraid I'm not of much help when it comes to ruby, but hope you can look into it, as these are some really good looking themes.
Cheers!
Example: http://tmtheme-editor.herokuapp.com/#/theme/Made%20by%20phunky
I don't have a tm2theme-compatible editor at hand, but the above page shows gutter with a pretty light background. However, when I load the converted theme in Emacs, the fringe face is pretty dark (a6a6ac
), noticeably darker than the mode-line and the background color of comments.
To be fair, I don't see a specific color for the gutter background in the theme's definition.
I wonder if there are some colors we can pick up.
The most important faces among those, I think, are whitespace-trailing
and whitespace-line
.
Converting the theme mentioned in the previous report (http://tmtheme-editor.herokuapp.com/#/theme/Made%20by%20phunky) results in unreadable diff faces:
tmThemes can have RGBA hex colors, they need to be converted to tints of their background.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.