aboutsummaryrefslogtreecommitdiffstats
path: root/emmet-mode.el
Commit message (Collapse)AuthorAgeFilesLines
* Rebind emmet-wrap-with-markup under ‘C-c C-c w’Vladimir Sedach2018-03-291-4/+3
| | | | | | | | | | | | elisp manual 22.2.1 Major Mode Conventions: “The key sequences bound in a major mode keymap should usually start with ‘C-c’, followed by a control character, a digit, or ‘{’, ‘}’, ‘<’, ‘>’, ‘:’ or ‘;’. The other punctuation characters are reserved for minor modes, and ordinary letters are reserved for users.” ‘C-c C-c’ is already a prefix map for sgml-mode, the ‘w’ fits nicely there without a conflict.
* Add emmet-preview-modeMatus Goljer2016-11-121-1/+29
|
* Fix regression in regular multiplier handlingDave Mayo2016-09-061-3/+4
| | | | | | Previous commit borked regular multplied markup, this one doesn't. Also, tests were there!
* Implement token-replacement in new wrap * functionDave Mayo2016-09-061-16/+23
| | | | | | | | | It itched at me, so I cleaned it up and rewrote to make it do the token replacement. Would be more performant to do the sha1 once, but realistically, it's not going to be meaningfully slow for the use-case. This is essentially complete, but needs tests - I'll add them as soon as I can get testing working on my computer.
* Added multi-line * wrap functionality as per #81Dave Mayo2016-09-061-8/+15
| | | | | | | | | | | | | | | | This is a proof-of-concept - it needs to do the token-replacement jazz the original version did, because right now this will fail if the content of the txt/lines includes unmatched braces in various configurations. I think the overall plan is sound: split expression into leading and terminal components, render the text as a list (either a one-element list of all text or a multiline list, depending on trailing *), and create a terminal phrase consisting of "terminal-element{TOKEN}" joined on "+" To do: render list into a-list of '((hash-of-txt . txt), ...), mapconcat the hash replacement instead of the text, then run replace over result. Write tests. Also, tests appear to be broken on master, at least on my machine.
* Add self-closing tags style customizationDesmond O. Chang2016-05-021-1/+21
| | | | | People use different styles in different projects. Allow user to customize it.
* move 'emmet-mode.el ends here' to the bottom of fileCody2015-12-131-1/+2
|
* Added JSX's test and document.smihica2015-10-061-1/+5
|
* Fixed bug #65smihica2015-09-251-10/+10
|
* Refs #61 - Escape using backslash inside { text }Dave Mayo2015-04-101-6/+11
| | | | | | | | | | This fixes half the problem specified in #61. The doc change is technically inaccurate - opening brackets don't actually NEED to be escaped - p{{\}} works as well as p{\{\}}. But they CAN be escaped, so I used the most regular version. The part that is NOT fixed is that a | character, escaped or not, will prevent the expression from being parsed AT ALL.
* Attempt at resolving #56Dave Mayo2014-12-221-1/+1
| | | | skip-chars-forward does not take a regexp, it takes a pseudo-char-class string.
* Fixes #52 - changes default setting for preview to nilDave Mayo2014-11-261-1/+1
|
* Fixes #54 - Uses looking-back to check if there is a tag immediately ↵Dave Mayo2014-11-261-8/+10
| | | | preceding in cases where ">" is before-char
* Fixes #50 - Checks start of region for flash after insert.Dave Mayo2014-11-141-1/+3
|
* Avoid warning messagessmihica2014-10-261-516/+526
|
* Wrap with markup now leaves cursor at edit point.Dave Mayo2014-10-231-2/+5
|
* Make never run for fix in commit 1b5517ec15803addb5322df615a70640bb3ea617Dave Mayo2014-10-141-1/+2
|
* Fixed stack overflow error while checking for style tag and attrflyingleafe2014-10-011-8/+33
|
* Wrap using token replacement, handles multiline. Test for multiline.Dave Mayo2014-08-281-15/+4
|
* Tests for escape and multiplier.Dave Mayo2014-08-251-5/+18
|
* Functional wrap-with-markup!Dave Mayo2014-08-251-3/+4
|
* WIP - Needs escaping figured out or avoidedDave Mayo2014-08-251-0/+15
|
* Make emmet-next-edit-point respect "emmet-move-cursor-between-quotes"Dave Mayo2014-08-241-3/+8
|
* Fixed single quotes in style attrflyingleafe2014-08-241-4/+4
|
* Added support of CSS snippets expanding inside style tags and attrsflyingleafe2014-08-241-7/+20
| | | | | | Conflicts: emmet-mode.el src/mode-def.el
* Refs #38, Close #39. Save match data around css cursor positioning.Dave Mayo2014-08-241-3/+4
|
* Fixed very strange behavior in some casesflyingleafe2014-08-241-0/+1
|
* Added Sass abbrs proper cursor positioningflyingleafe2014-08-241-2/+3
|
* Moved cursor repositioning logic in separate functionflyingleafe2014-08-241-15/+13
|
* Fixed cursor positioning in css snippetsflyingleafe2014-08-241-3/+10
|
* Fixes #40Dave Mayo2014-08-241-1/+2
|
* Fixed error msg on self-closed tag expansionflyingleafe2014-08-221-2/+2
|
* Fixed wrong cursor position while expanding nested inline tagsflyingleafe2014-08-221-7/+13
|
* Adapted emmet-html-next-insert-point to use emmet-go-to-edit-pointflyingleafe2014-08-221-35/+10
|
* Forgot to rebuild.Dave Mayo2014-08-181-1/+1
|
* Snippets use new attr syntaxDave Mayo2014-08-181-55/+55
|
* flyingleafe: added my real nameflyingleafe2014-08-111-1/+1
|
* Fix typo in snippetsflyingleafe2014-08-111-3/+3
|
* Add support for Sass: Removing trailing semicolon; ability to defineflyingleafe2014-08-111-37/+62
| | | | Sass-specific snippets
* Semi-colons are actually useful to stop on, due to entities such as &quot;Dave Mayo2014-08-101-1/+1
|
* Better method for dealing with HTML brackets, does not rely on search.Dave Mayo2014-08-101-3/+6
|
* Uses backward-char and less selective stop-words. Seems to basically work ↵Dave Mayo2014-08-101-9/+12
| | | | in all cases I have managed to test.
* Changes to come closer to Emmet support, to allow for better consistency of ↵Dave Mayo2014-08-101-25/+26
| | | | | | | | | | behavior. Major changes include: * Parser is changed to use Emmet's bracket syntax for properties * now uses point as the right bound of the expression * searches for left bound from right bound. This is poorly executed as of now
* Replace mark-active with (use-region-p)Dave Mayo2014-08-101-3/+3
|
* Fixed version missmatch.smihica2014-08-111-3/+3
|
* Added new copyrightersmihica2014-08-111-2/+3
|
* Merge branch 'master' of https://github.com/flyingleafe/emmet-mode into ↵smihica2014-08-111-8/+55
|\ | | | | | | flyingleafe-master
| * Fix: prevent command from firing in css filesflyingleafe2014-08-101-2/+2
| |
| * Rebuild: forgot about autoload magic commentflyingleafe2014-08-101-0/+1
| |
| * Added the Go To Edit Point functionalityflyingleafe2014-08-101-8/+54
| |