branch: elpa/evil-matchit
commit fb04ffae4b92da0644e2953a1301b6db3d814d5e
Author: Brian Leung <[email protected]>
Commit: Brian Leung <[email protected]>
Treat source blocks labelled as "elisp".
There is no 'elisp-mode, so we special-case this.
---
evil-matchit-org.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/evil-matchit-org.el b/evil-matchit-org.el
index 5d73e8037c..0372e64dd5 100644
--- a/evil-matchit-org.el
+++ b/evil-matchit-org.el
@@ -62,7 +62,9 @@ between '\\(' and '\\)' in regular expression.
;; org-element-at-point is available only at org7+
(let ((lang (evilmi--element-property :language (org-element-at-point))))
(when lang
- (intern (concat lang "-mode")))))
+ (if (string= lang "elisp")
+ 'emacs-lisp-mode
+ (intern (concat lang "-mode"))))))
;;;###autoload
(defun evilmi-org-get-tag ()