[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-matchit af40d309c6 078/244: documentation
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-matchit af40d309c6 078/244: documentation |
Date: |
Thu, 6 Jan 2022 02:58:51 -0500 (EST) |
branch: elpa/evil-matchit
commit af40d309c675698b92374646a0576dae182fd410
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>
documentation
---
README.org | 28 ++++++++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)
diff --git a/README.org b/README.org
index 86a34f9a26..1caa437aa0 100644
--- a/README.org
+++ b/README.org
@@ -68,12 +68,36 @@ 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
+** Add new tags into existing languages
+I use ruby as an example.
+
+If you want to add more tags into ruby, you can do two thing:
+- You need define the regular expression to extract keyword
+- You need define the open/middle/closed tags
+
+Open evil-matchit-ruby.el whole structure is like,
+#+begin_src elisp
+(defvar evilmi-ruby-extract-keyword-howtos '())
+(defvar evilmi-ruby-match-tags '())
+;; more code here ...
+(provide 'evil-matchit-ruby)
+#+end_src
+
+So you setup in ~/.emacs is as below:
+#+begin_src elisp
+(eval-after-load 'evil-matchit-ruby
+ '(progn
+ (add-to-list 'evilmi-ruby-extract-keywords-howtos '("^[
\t]*\\([a-z]+\\)\\( .*\\| *\\)$" 1))
+ (add-to-list 'evilmi-ruby-match-tags '(("unless" "if") ("elsif" "else")
"end"))
+ ))
+#+end_src
+
** Support more major modes
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,.
-Let's say 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 line into your ~/.emacs:
#+BEGIN_SRC elisp
(plist-put evilmi-plugins my-mode '((evilmi-html-get-tag evilmi-html-jump)))
@@ -103,7 +127,7 @@ All you need to do is to define function
evilmi-customize-keybinding before turn
** Jump between the two end of the "string"
Please note the definition of "string" could be *customized* by user.
-For example, in C code, the comment is wrapped by "/". So we could regard C
comment as some kind of string.
+For example, we could treat C comment as string wrapper by "/".
Here is the setup to jump between the two ends of the C comment:
#+begin_src elisp
- [nongnu] elpa/evil-matchit 694e6fba3d 045/244: updated README, (continued)
- [nongnu] elpa/evil-matchit 694e6fba3d 045/244: updated README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 13c528765e 050/244: updated README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 642fcdaf52 051/244: README updated, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit b4163c71c3 038/244: support org-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 11ba040ab0 055/244: support json-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 5bc34a6bd5 060/244: minor ruby bug, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit fcf6b25407 063/244: fortran, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 338a10ccd6 066/244: fixed: by default shortcut % is disabled, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 8540a4c12a 068/244: supports inner text object, v1.5.0, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 8b4db43dc2 075/244: Merge pull request #44 from thegreatape/master, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit af40d309c6 078/244: documentation,
ELPA Syncer <=
- [nongnu] elpa/evil-matchit 89fd968ac2 080/244: spacemacs use enh-ruby-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit ff29cd2264 084/244: workaround issue in python-mode v2.0.2, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 63846fc4c0 089/244: Add melpa badge, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 62d948743e 092/244: updated README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 98c045d352 094/244: Merge pull request #61 from robbyoconnor/patch-2, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 94e359e30c 095/244: Fix embedded major-mode detection in org-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit c675e740a7 101/244: can simple jump in latex-mode, #70, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 34c51f68fd 102/244: jump in diff-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 64791bc376 105/244: clean code, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 51d46747e3 108/244: support Facebook React JSX, ELPA Syncer, 2022/01/06