slim-template / emacs-slim Goto Github PK
View Code? Open in Web Editor NEWSyntax highlighting for Slim
Home Page: http://slim-lang.com
Syntax highlighting for Slim
Home Page: http://slim-lang.com
Hi, @minad!
After the repo was moved I no longer seem to have commit privileges for it.
When enable subword-mode, subword-backward-kill is not work correct, it behavior same as original backward-kill-word.
Thanks.
Hi,
As a long time slim and emacs user, Iād like to propose my candidature as a new co-maintainer for this package. Along with reviewing pending MR and issues and watching for new ones, Iād like to make a new release and propose this package in the new nongnu elpa repository.
Have a great day.
Hi, first of all thanks for a great plugin :)
I was wondering if you know this, probably being very skilled in emacs and its modes:
I have rinari installed (for rails and ruby) and, for some reason, when the slim mode activates i lose kinari (i.e. no longer can "CTRL+C ; " for navigation within the rails project). Do you have any idea what could cause that what can i do to solve it?
Thanks in advance,
Pedro
When working with javascript: blocks within a slim file the indentation can get out of hand since there doesn't seem to be awareness that you're in a JS block and not slim.
It would help if there was some basic indentation help. Also when using (newline-and-indent) within a slim buffer within a JS block it indents 2 characters forward as if you're working in slim still.
I am using slim templates in Ruby on Rails.
I have some files with name scheme such as index.html.slim
or show.html.slim
None of these files auto-indent new line. When I press enter, the cursor just goes to beginning of line instead of correctly auto-indenting.
It is very outdated
Slim allows:
a[href="http://google.com"
data-id="google-link"
data-clicked="false"] Go to Bing
Slim-mode doesn't treat this differently than nesting plain tags, so no functionality is broken here, but it would be huge boon to readability if the attributes were highlighted in the same way they are on a single line.
Some conflicts could occur, however:
div[class="hidden"
style="display: none;"] You can't see me!
style
is a tag as well as an attribute.
I'm not versed in Emacs Lisp, so I'm unsure how this would manifest in the code itself, but I can try my hand at it (I've got some handy Clojure experience.)
Thoughts?
Edit:
I just realized proper indentation would also be necessary. The above code look like this in slim-mode:
div[class="hidden"
style="display: none;"] You can't see me!
With slim-backspace-backdents-nesting set to nil, slim-electric-backspace will indent code following current line.
Happens using slim-mode-20130614.2240 from elpa.
When I add single quoted line it breaks further markup highlighting. My complete Emacs config could be found at [email protected]:alecnmk/remacs.git
I'm attaching screenshot which indicates issue on test.slim example.
Thank you!
Could you please specify the license used for this package?
Assuming that you want to release under "the GPL v3 or any later version", the best way to do that would be to add this permission statement to the library header:
;; This file 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, or (at your option)
;; any later version.
;; This file 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/>.
Also consider adding a LICENSE
file containing the text of the GPL-3. You could add just that file without also adding the above persmission statement, but if you do that, then the "or (at your option) any later version" bit won't be known. So I recommend that you add both the actual license and the permission statement.
If you find the permission statement to be too noisy, then you could instead add one of these following lines to the header. If you do that, then it becomes more important to also add the LICENSE
file - a judge might decide that such a line by itself is not sufficient. Still, adding just such a line is better than not specifing the license at all.
;; License: GNU General Public License version 3, or (at your option) any later version
;; License: GNU General Public License version 3, or any later version
;; License: GNU GPL version 3, or (at your option) any later version
;; License: GPL version 3, or (at your option) any later version
;; License: GPL version 3, or any later version
;; License: GPL v3, or (at your option) any later version
;; License: GPL v3, or any later version
;; License: GPL-3+
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.