[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/jade-mode 2f0f55cae4 018/128: updated readme
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/jade-mode 2f0f55cae4 018/128: updated readme |
Date: |
Sat, 29 Jan 2022 08:24:42 -0500 (EST) |
branch: elpa/jade-mode
commit 2f0f55cae463b89a8c455b2037fcacf0f69e5075
Author: Brian Carlson <brian.m.carlson@gmail.com>
Commit: Brian Carlson <brian.m.carlson@gmail.com>
updated readme
---
README.md | 51 +++++++++++++++++++++++++++++++++++++++++----------
1 file changed, 41 insertions(+), 10 deletions(-)
diff --git a/README.md b/README.md
index 23635039e2..4f2714bbf8 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
-# jade-mode
+# sws-mode
-Emacs major mode for [jade template](http://github.com/visionmedia/jade)
highlighting.
+## major mode for jade-mode and stylus-mode
-Still 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.
+__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
Lines 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.
@@ -11,23 +11,54 @@ Lines can be indented or un-indented (is that a word?) with
tab, shift-tab respe
#container
.content
^
- |----cursor anywhere on this line, press tab
+ |----cursor anywhere on this line except at beginning of text, press tab
or S-tab
+
+ html
+ body
+ #container
+ .content
+ ^
+ |---- cursor moves to beginning of text...once cursor is at beginning
of text, press tab
html
body
#container
.content
- ^
- |---- cursor anywhere on this line, press tab again
+ ^
+ |---- now line is maximum indented, press tab again
html
body
#container
.content
+ ^
+ |---- line moves to minimum indentation level (no indentation)
+
+Regions can be indentend in a similar way; however, this is still buggy...
+
+Since jade and stylus nesting is somewhat related to sexp layout I hope to
have sexp related selection & manipulation working in the future. Currently
working on `jade-highlight-sexp`
+
+
+### jade-mode
+
+Emacs major mode for [jade template](http://github.com/visionmedia/jade)
highlighting. This mode extends sws-mode to provide some rudimentary syntax
highlighting.
+
+Still 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.
+
+
+I 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.
+
+### stylus-mode
+I'm not sure yet how to highlight .styl files, so for now, just use sws-mode
when editing stylus mode.
+
+## Installation instructions
-Regions can be indentend in a similar way; however, this is still buggy as
hell.
+Copy 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/`
-I would like to get the highlighting working better. Also note javascript
highlighting with either js2-mode or espresso-mode should be possible.
+Add the following lines to any of your initialization files
-Since jade nesting is somewhat related to sexp layout I hope to have sexp
related selection & manipulation working in the future. Currently working on
`jade-highlight-sexp`
-
+ (add-to-list 'load-path "~/.emacs.d/vendor/jade-mode")
+ (require 'sws-mode)
+ (require 'jade-mode)
+ (add-to-list 'auto-mode-alist '("\\.styl$" . sws-mode))
+ (add-to-list 'auto-mode-alist '("\\.jade$" . sws-mode))
- [nongnu] elpa/jade-mode e9288f66dc 106/128: use named regexes in font-lock-keywords list, (continued)
- [nongnu] elpa/jade-mode e9288f66dc 106/128: use named regexes in font-lock-keywords list, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode f9522fc00a 105/128: reorder highlight tests to match regex order in jade-mode.el and display, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 97c460453b 116/128: Merge pull request #62 from robbyoconnor/remove-flymake-from-README, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 93c0dec9d4 121/128: fix `.pug` extension to be auto-loaded, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 4dbde92542 122/128: Merge pull request #68 from chillum/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 1ad7c51f3c 128/128: Merge pull request #72 from he-la/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 91c2d4be67 019/128: update to include keybinding information, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode ac71830de7 096/128: [#46] add Makefile and .travis.yml, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode a61ad07db6 094/128: Merge pull request #42 from tjefferson08/doctype_fontification, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 5752db7c36 012/128: added significant whitespace mode as sub-mode for jade-mode and (soon to be) stylus-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 2f0f55cae4 018/128: updated readme,
ELPA Syncer <=
- [nongnu] elpa/jade-mode 823c573c29 042/128: Merge pull request #5 from ntotani/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 97e1db63be 088/128: fix error while fontifying pipe regions, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 936b4a974b 115/128: Remove flymake mentions from the README, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode fd367b9489 076/128: Remove unnecessary code from README, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode dfeadc97a5 069/128: Merge pull request #31 from tjefferson08/26_comment_highlight, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 6b9d9507e2 010/128: can detect simple region sexps, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode d28d1810fa 007/128: basic decrement tab working, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode cb82d16486 017/128: jade-mode depends on sws-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode e4c668bde5 023/128: Have documentation such that jade-mode is used for .jade files., ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 2b093c23d2 071/128: [#20] add single quote ex. (currently incorrect), ELPA Syncer, 2022/01/29