branch: elpa/evil-matchit
commit 9158dc87cc7a2f23a5c3259d82ef369851544d78
Author: Chen Bin <[email protected]>
Commit: Chen Bin <[email protected]>
case sensitive code is cleaned because Emacs will handle it
---
README.org | 3 +++
evil-matchit-cmake.el | 10 +++++-----
evil-matchit-org.el | 6 +++---
evil-matchit.el | 1 +
4 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/README.org b/README.org
index a03d12b2b9..16b6249c26 100644
--- a/README.org
+++ b/README.org
@@ -97,6 +97,9 @@ All you need to do is to define function
evilmi-customize-keybinding before turn
(global-evil-matchit-mode 1)
#+END_SRC
+** Match case sensitive tags?
+It's decided by the Emacs global variable "case-fold-search". You need not
care about it because the major mode will set this flag automatically.
+
* Developer guide
** Write Emacs Lisp to support new language
Simple. You only need define two functions and tell evil-matchit in which
major-mode they should be used.
diff --git a/evil-matchit-cmake.el b/evil-matchit-cmake.el
index 5281be4e29..999ec2e661 100644
--- a/evil-matchit-cmake.el
+++ b/evil-matchit-cmake.el
@@ -37,11 +37,11 @@
;; CMake (http://www.cmake.org) syntax
(defvar evilmi-cmake-match-tags
- '((("if" "IF") ("elseif" "ELSEIF" "else" "ELSE") ("endif" "ENDIF")
"MONOGAMY")
- (("foreach" "FOREACH") () ("endforeach" "ENDFOREACH") "MONOGAMY")
- (("macro" "MACRO") () ("endmacro" "ENDMACRO") "MONOGAMY")
- (("while" "WHILE") () ("endwhile" "ENDWHILE") "MONOGAMY")
- (("function" "FUNCTION") () ("endfunction" "ENDFUNCTION") "MONOGAMY")
+ '((("if") ("elseif" "else") ("endif") "MONOGAMY")
+ (("foreach") () ("endforeach") "MONOGAMY")
+ (("macro") () ("endmacro") "MONOGAMY")
+ (("while") () ("endwhile") "MONOGAMY")
+ (("function") () ("endfunction") "MONOGAMY")
))
;;;###autoload
diff --git a/evil-matchit-org.el b/evil-matchit-org.el
index 3d7d1e8cf9..1956758278 100644
--- a/evil-matchit-org.el
+++ b/evil-matchit-org.el
@@ -43,9 +43,9 @@ between '\\(' and '\\)' in regular expression.
)
;; ruby/bash/lua/vimrc
(defvar evilmi-org-match-tags
- '((("begin_src" "BEGIN_SRC") () ( "end_src" "END_SRC") "MONOGAMY")
- (("begin_example" "BEGIN_EXAMPLE") () ( "end_example" "END_EXAMPLE")
"MONOGAMY")
- (("begin_html" "BEGIN_HTML") () ( "end_html" "END_HTML") "MONOGAMY")
+ '((("begin_src") () ( "end_src") "MONOGAMY")
+ (("begin_example") () ( "end_example") "MONOGAMY")
+ (("begin_html") () ( "end_html") "MONOGAMY")
))
(defun evilmi--get-embedded-language-major-mode ()
diff --git a/evil-matchit.el b/evil-matchit.el
index 373190aca6..4efb90aa59 100644
--- a/evil-matchit.el
+++ b/evil-matchit.el
@@ -31,6 +31,7 @@
;;
;; This program emulates matchit.vim by Benji Fisher.
;; It allows you use % to match items.
+;; See https://github.com/redguardtoo/evil-matchit/ for help
;;
;; This program requires EVIL (http://gitorious.org/evil)
;;