emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil-matchit 2f423258e1 152/244: support mhtml-mode


From: ELPA Syncer
Subject: [nongnu] elpa/evil-matchit 2f423258e1 152/244: support mhtml-mode
Date: Thu, 6 Jan 2022 02:58:57 -0500 (EST)

branch: elpa/evil-matchit
commit 2f423258e1d7cb99225f49738acc89c15439c525
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>

    support mhtml-mode
---
 README.org      | 9 ++++++++-
 evil-matchit.el | 9 +++------
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/README.org b/README.org
index add3e1b193..9666a7647d 100644
--- a/README.org
+++ b/README.org
@@ -30,7 +30,7 @@ Many modern languages are supported:
 - Laravel Blade Templating
 - Vim script
 - Verilog
-- Emacs email (mesage-mode)
+- Emacs email (message-mode)
 
 This package uses Evil as its vi layer!
 
@@ -82,6 +82,13 @@ If you need visually select lines, I strongly recommend 
*using "evilmi-select-it
 This is actually an advantage of Emacs, you can tweak the select region 
without go into visual state at all.
 
 * Advanced tips
+** Support new major modes
+In order to apply three matching rules =evilmi-template=, =evilmi-simple=, and 
=evilmi-html= on =mhtml-mode=, please insert below code *after* your 
evil-nerd-commenter setup:
+#+begin_src elisp
+(plist-put evilmi-plugins 'mhtml-mode '((evilmi-template-get-tag 
evilmi-template-jump)
+                                        (evilmi-simple-get-tag 
evilmi-simple-jump)
+                                        (evilmi-html-get-tag evilmi-html-jump)
+#+end_src
 ** 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. 
 
diff --git a/evil-matchit.el b/evil-matchit.el
index 25ff081789..bd01df81c3 100644
--- a/evil-matchit.el
+++ b/evil-matchit.el
@@ -30,13 +30,10 @@
 ;;; Commentary:
 ;;
 ;; This program emulates matchit.vim by Benji Fisher.
-;; It allows you press % to match items.
+;; Add `(global-evil-matchit-mode 1)' into Emacs setup.
+;; Then press % to match items.
 ;; See https://github.com/redguardtoo/evil-matchit/ for help.
 ;;
-;; You can turn on `evilmi-always-simple-jump' to match brackets at first.
-;; Thus you disable our *advanced algorithm* which I highly recommend.
-;; Some people may prefer simpler algorithm in `python-mode'.
-;;
 ;; This program requires EVIL (http://gitorious.org/evil)
 ;;
 
@@ -292,7 +289,7 @@ If IS-FORWARD is t, jump forward; or else jump backward."
           (plist-put evilmi-plugins mode '((evilmi-template-get-tag 
evilmi-template-jump)
                                            (evilmi-simple-get-tag 
evilmi-simple-jump)
                                            (evilmi-html-get-tag 
evilmi-html-jump))))
-        '(web-mode html-mode nxml-mode nxhtml-mode sgml-mode message-mode))
+        '(web-mode html-mode nxml-mode nxhtml-mode sgml-mode message-mode 
mhtml-mode))
 
   ;; Emacs Org-mode
   (autoload 'evilmi-org-get-tag "evil-matchit-org" nil)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]