lisp/emacs-lisp/lisp-mode.el: Support cl-def* expressions in imenu.

This commit is contained in:
Juanma Barranquero 2013-08-02 18:29:16 +02:00
parent f078d5700b
commit 185e3b5a2f
2 changed files with 8 additions and 2 deletions

View file

@ -110,7 +110,9 @@ It has `lisp-mode-abbrev-table' as its parent."
"define-compiler-macro" "define-modify-macro"
"defsetf" "define-setf-expander"
"define-method-combination"
"defgeneric" "defmethod") t))
"defgeneric" "defmethod"
"cl-defun" "cl-defsubst" "cl-defmacro"
"cl-define-compiler-macro") t))
"\\s-+\\(\\(\\sw\\|\\s_\\)+\\)"))
2)
(list (purecopy "Variables")
@ -132,7 +134,8 @@ It has `lisp-mode-abbrev-table' as its parent."
(regexp-opt
'("defgroup" "deftheme" "deftype" "defstruct"
"defclass" "define-condition" "define-widget"
"defface" "defpackage") t))
"defface" "defpackage" "cl-deftype"
"cl-defstruct") t))
"\\s-+'?\\(\\(\\sw\\|\\s_\\)+\\)"))
2))