{"id":13721744,"url":"https://github.com/brianc/jade-mode","last_synced_at":"2025-10-03T13:19:17.118Z","repository":{"id":1235902,"uuid":"1172771","full_name":"brianc/jade-mode","owner":"brianc","description":"Emacs major mode for jade template highlighting","archived":false,"fork":false,"pushed_at":"2021-10-19T21:13:24.000Z","size":81,"stargazers_count":157,"open_issues_count":15,"forks_count":41,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-26T15:29:28.124Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brianc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-12-15T23:57:56.000Z","updated_at":"2024-11-26T17:29:21.000Z","dependencies_parsed_at":"2022-08-16T12:40:32.733Z","dependency_job_id":null,"html_url":"https://github.com/brianc/jade-mode","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianc%2Fjade-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianc%2Fjade-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianc%2Fjade-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianc%2Fjade-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianc","download_url":"https://codeload.github.com/brianc/jade-mode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239311597,"owners_count":19618013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T01:01:20.857Z","updated_at":"2025-10-03T13:19:12.082Z","avatar_url":"https://github.com/brianc.png","language":"Emacs Lisp","readme":"# sws-mode\n[![MELPA](http://melpa.org/packages/jade-mode-badge.svg)](http://melpa.org/#/jade-mode)  [![MELPA Stable](http://stable.melpa.org/packages/jade-mode-badge.svg)](http://melpa.org/#/jade-mode)\n\n## major mode for jade-mode and stylus-mode\n\n__S__ignificant __W__hitespace __M__ode.  Because Jade and Stylus are both 'significant white space' languages, sws-mode can be used to edit both types of files\n\nLines can be indented or un-indented (is that a word?) with tab, shift-tab respectively.  Indentation will look at the proceeding line and not indent more than 1 level of nesting below it.\n\n    html\n      body\n        #container\n        .content\n      ^\n      |----cursor anywhere on this line except at beginning of text, press tab or S-tab\n\n    html\n      body\n        #container\n        .content\n        ^\n        |---- cursor moves to beginning of text...once cursor is at beginning of text, press tab\n\n    html\n      body\n        #container\n          .content\n          ^\n          |---- now line is maximum indented, press tab again\n\n    html\n      body\n        #container\n    .content\n    ^\n    |---- line moves to minimum indentation level (no indentation)\n\nRegions can be indentend in a similar way; however, this is still buggy...\n\nSince jade and stylus nesting is somewhat related to sexp layout I hope to have sexp related selection \u0026 manipulation working in the future.  See `jade-highlight-sexp` for an example\n\n## key bindings\n\n  - [tab] if region is active, do 'smart indent' on region.  otherwise, move cursor to beginning of line text.  If cursor already at beginning of line text, do 'smart indent' on line.\n  - [shift-tab] if region is active, do 'smart dedent' on region.  otherwise, move cursor to beginning of line text.  If cursor already at beginning of line text, do 'smart dedent' on line.\n\n\n### jade-mode\n\nEmacs major mode for [jade template](http://github.com/visionmedia/jade) highlighting.  This mode extends sws-mode to provide some rudimentary syntax highlighting.\n\nStill in very early stages.  Some simple highlighting of tags, ids, and classes works; however, it highlights incorrectly into the javascript code and plain text code as well.\n\n\nI would like to get the highlighting working better.  Also note javascript highlighting with either js2-mode or espresso-mode should be possible...I'm a major major-mode writing noob so it'll take a while.\n\n### stylus-mode\nI'm not sure yet how to highlight .styl files, so for now, just use sws-mode when editing stylus mode.\n\n## Installation instructions\n\nCopy the jade-mode.el and sws-mode.el to some directory on your computer.  I put mine under `~/code/jade-mode` and sym-link the jade-mode folder into `~/.emacs.d/vendor/`.  You can just as easily put the folder itself under '~/.emacs.d/vendor/`\n\nAdd the following lines to any of your initialization files\n\n    (add-to-list 'load-path \"~/.emacs.d/vendor/jade-mode\")\n    (require 'sws-mode)\n    (require 'jade-mode)\n    (add-to-list 'auto-mode-alist '(\"\\\\.styl\\\\'\" . sws-mode))\n\n### [Flycheck][] support.\n\n[Flycheck][] now has support for jade files. It currently only handles errors.\n\n\n[Flycheck]: https://github.com/flycheck/flycheck\n","funding_links":[],"categories":["Editor Plugins"],"sub_categories":["People"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianc%2Fjade-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianc%2Fjade-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianc%2Fjade-mode/lists"}