[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-matchit 3873a93653 081/244: support enh-ruby-mode, mo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-matchit 3873a93653 081/244: support enh-ruby-mode, more tips v2.0.1 |
Date: |
Thu, 6 Jan 2022 02:58:51 -0500 (EST) |
branch: elpa/evil-matchit
commit 3873a93653e683f79752c3810484cf19c56f2555
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>
support enh-ruby-mode, more tips v2.0.1
---
README.org | 22 +++++++++++++++-------
evil-matchit-pkg.el | 2 +-
evil-matchit.el | 4 ++--
pkg.sh | 2 +-
screencast.gif | Bin 318349 -> 318351 bytes
5 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/README.org b/README.org
index 1caa437aa0..67f96d6709 100644
--- a/README.org
+++ b/README.org
@@ -1,4 +1,4 @@
-* evil-matchit (v2.0)
+* evil-matchit (v2.0.1)
Vim [[http://www.vim.org/scripts/script.php?script_id=39][matchit.vim]] by
Benji Fisher ported into Emacs.
@@ -31,10 +31,10 @@ Tested on Emacs 23.4, 24.3, 24.4
* Why use evil-matchit
- No learning curve. Press "%" to jump. That's all!
-- Stable! The ONLY dependency is evil-mode. It works in any major modes
(web-mode, html-mode ...).
-- Support any modern languages (html/java/c/c++/python/latex/javascript ...).
+- Stable! Though it's dependent on evil-mode, NO evil-mode API is used
+- Support any modern languages (html/java/c/c++/python/latex/javascript ...)
- Powerful. If you mix jsp, freemarker, html, jquery template or any weird
syntax into one file, it still works!
-- Extendable. Write a plugin for it takes only 5 minutes.
+- Extendable. Write a plugin for it takes only 5 minutes
- Long term support
Screen cast for python:
@@ -68,6 +68,10 @@ All commands support numeric argument like "3%", "5va%" or
"9da%"
Please note "3%" will jump to a line *3 percentage down the file*. It's the
default behavior in original evil-mode . You can `(setq
evilmi-may-jump-by-percentage nil)` to turn off this feature. Then "3%" will
*jump 3 times*.
* Advanced tips
+** Use evilmi-select-items instead press '%' in evil-visual-state
+evilmi-select-items is more robust and provides more functionality. It works
even when evil-mode is not loaded.
+
+So you'd better stick to evilmi-select-items if possible.
** Add new tags into existing languages
I use ruby as an example.
@@ -97,14 +101,18 @@ Let's use html tag matching as an example.
html tags are automatically supported in sgml-mode, nxml-mode, web-mode,
html-mode and nxhtml-mode,.
-You want a new major-mode "my-mode" to do the html tag matching? Easy. Please
add below line into your ~/.emacs:
+You want a new major-mode "my-mode" to do the html tag matching? Easy. Please
add below code into your ~/.emacs:
#+BEGIN_SRC elisp
-(plist-put evilmi-plugins my-mode '((evilmi-html-get-tag evilmi-html-jump)))
+(plist-put evilmi-plugins my-mode '((evilmi-simple-get-tag evilmi-simple-jump)
+ (evilmi-html-get-tag evilmi-html-jump)))
#+END_SRC
-Further explanation: "evilmi-html-get-tag" and "evilmi-html-jump" are existing
APIs which are defined in evil-matchit-html.el. The above line means that in
my-mode, use "evilmi-html-get-tag" to find open/closed tag in current line and
use "evilmi-html-jump" to jump to matched closed/open tag.
+Further explanation: "evilmi-html-get-tag" and "evilmi-html-jump" are existing
APIs which are defined in evil-matchit-html.el.
+
+The above line means that use "evilmi-html-get-tag" to find open/closed tag in
current line and use "evilmi-html-jump" to jump to matched closed/open tag.
+"evilmi-simple-get-tag" and "evilmi-simple-jump" provide generic rules shared
by most major modes. For example, jumping between two end of the string,
between brackets, etc.
** Mixed languages in one html template file is supported
If you embed python language in a html file. You can match both html tags and
python statement by inserting below code into your ~/.emacs:
#+BEGIN_SRC elisp
diff --git a/evil-matchit-pkg.el b/evil-matchit-pkg.el
index 38024bc899..46d9970267 100644
--- a/evil-matchit-pkg.el
+++ b/evil-matchit-pkg.el
@@ -1,2 +1,2 @@
-(define-package "evil-matchit" "2.0"
+(define-package "evil-matchit" "2.0.1"
"Vim matchit ported into Emacs (requires EVIL)")
diff --git a/evil-matchit.el b/evil-matchit.el
index 0e25f1d545..58075e2239 100644
--- a/evil-matchit.el
+++ b/evil-matchit.el
@@ -4,7 +4,7 @@
;; Author: Chen Bin <chenbin.sh@gmail.com>
;; URL: http://github.com/redguardtoo/evil-matchit
-;; Version: 2.0
+;; Version: 2.0.1
;; Keywords: matchit vim evil
;; Package-Requires: ((evil "1.0.7"))
;;
@@ -438,7 +438,7 @@ If font-face-under-cursor is NOT nil, the quoted string is
being processed"
))
;;;###autoload
-(defun evilmi-version() (interactive) (message "2.0"))
+(defun evilmi-version() (interactive) (message "2.0.1"))
;;;###autoload
(define-minor-mode evil-matchit-mode
diff --git a/pkg.sh b/pkg.sh
index 524e0a8f55..996632db83 100755
--- a/pkg.sh
+++ b/pkg.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-pkg=evil-matchit-2.0
+pkg=evil-matchit-2.0.1
mkdir $pkg
cp README.org $pkg
cp *.el $pkg
diff --git a/screencast.gif b/screencast.gif
index 948a6a97f1..48bb05fa54 100644
Binary files a/screencast.gif and b/screencast.gif differ
- [nongnu] elpa/evil-matchit d701acb054 158/244: Merge pull request #96 from JJPandari/master, (continued)
- [nongnu] elpa/evil-matchit d701acb054 158/244: Merge pull request #96 from JJPandari/master, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit cc3654b00d 133/244: only keep fn-end and do-else-end pairs, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 7bee6fad80 167/244: Merge pull request #106 from porras/patch-1, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit abe43359bf 160/244: Merge pull request #98 from nitros12/master, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit c5b87b4de5 174/244: Merge pull request #108 from neojski/better-parens-handling, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 5e92e374e6 179/244: better algorithm to match keyword, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 449da5ca10 082/244: fixed typo, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 18a3e6ab47 096/244: Merge pull request #64 from hlissner/master, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 58e735c5ea 097/244: org-element-property exist in 24.4+ only, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit de6ce21e1e 106/244: jump in comment, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 3873a93653 081/244: support enh-ruby-mode, more tips v2.0.1,
ELPA Syncer <=
- [nongnu] elpa/evil-matchit 2f423258e1 152/244: support mhtml-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 4a24de3862 126/244: Add copyright preamble, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 73bef5fb56 134/244: Merge pull request #84 from dsdshcym/83-elixir-support, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 8123eef094 146/244: Merge pull request #88 from Khady/master, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 3f49ee9d17 140/244: improve ocaml, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 8d6bd9187d 154/244: [chen] update doc, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 2143844e2b 170/244: support js2-jsx-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit e941c695f3 173/244: Add [ and { as well., ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit c04f8f480c 164/244: Match Ruby's begin also when it's not on the beginning of the line, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit d779aedaf1 195/244: clean code, ELPA Syncer, 2022/01/06