diff options
| author | Dave Love | 1999-09-10 18:08:06 +0000 |
|---|---|---|
| committer | Dave Love | 1999-09-10 18:08:06 +0000 |
| commit | e596094db5644575a362e7cbbd233d3f6432e81f (patch) | |
| tree | 4393602dc6bfd9b4af0f5efc968af327cdd3ae20 | |
| parent | 065ca374ab34732f968b652153084e2d7f3113f4 (diff) | |
| download | emacs-e596094db5644575a362e7cbbd233d3f6432e81f.tar.gz emacs-e596094db5644575a362e7cbbd233d3f6432e81f.zip | |
(lisp-imenu-generic-expression): Recognize define-widget.
(emacs-lisp-mode-hook, lisp-mode-hook, lisp-interaction-mode-hook):
Customize.
| -rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 65fa9c1b7d5..f5755bc4b8c 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -91,11 +91,13 @@ | |||
| 91 | (defvar lisp-imenu-generic-expression | 91 | (defvar lisp-imenu-generic-expression |
| 92 | '( | 92 | '( |
| 93 | (nil | 93 | (nil |
| 94 | "^\\s-*(def\\(un\\|subst\\|macro\\|advice\\|ine-skeleton\\)\\s-+\\([-A-Za-z0-9+*|:/]+\\)" 2) | 94 | "^\\s-*(def\\(un\\|subst\\|macro\\|advice\\|ine-skeleton\\)\ |
| 95 | \\s-+\\([-A-Za-z0-9+*|:/]+\\)" 2) | ||
| 95 | ("Variables" | 96 | ("Variables" |
| 96 | "^\\s-*(def\\(var\\|const\\|custom\\)\\s-+\\([-A-Za-z0-9+*|:/]+\\)" 2) | 97 | "^\\s-*(def\\(var\\|const\\|custom\\)\\s-+\\([-A-Za-z0-9+*|:/]+\\)" 2) |
| 97 | ("Types" | 98 | ("Types" |
| 98 | "^\\s-*(def\\(group\\|type\\|struct\\|class\\|ine-condition\\)\\s-+\\([-A-Za-z0-9+*|:/]+\\)" | 99 | "^\\s-*(def\\(group\\|type\\|struct\\|class\\|ine-condition\ |
| 100 | \\|ine-widget\\)\\s-+'?\\([-A-Za-z0-9+*|:/]+\\)" | ||
| 99 | 2)) | 101 | 2)) |
| 100 | 102 | ||
| 101 | "Imenu generic expression for Lisp mode. See `imenu-generic-expression'.") | 103 | "Imenu generic expression for Lisp mode. See `imenu-generic-expression'.") |
| @@ -205,6 +207,24 @@ All commands in `shared-lisp-mode-map' are inherited by this map.") | |||
| 205 | (load-file compiled-file-name) | 207 | (load-file compiled-file-name) |
| 206 | (byte-compile-file buffer-file-name t)))) | 208 | (byte-compile-file buffer-file-name t)))) |
| 207 | 209 | ||
| 210 | (defcustom emacs-lisp-mode-hook nil | ||
| 211 | "Hook run when entering Emacs Lisp mode." | ||
| 212 | :options '(turn-on-eldoc-mode imenu-add-menubar-index) | ||
| 213 | :type 'hook | ||
| 214 | :group 'lisp) | ||
| 215 | |||
| 216 | (defcustom lisp-mode-hook nil | ||
| 217 | "Hook run when entering Lisp mode." | ||
| 218 | :options '(imenu-add-menubar-index) | ||
| 219 | :type 'hook | ||
| 220 | :group 'lisp) | ||
| 221 | |||
| 222 | (defcustom lisp-interaction-mode-hook nil | ||
| 223 | "Hook run when entering Lisp Interaction mode." | ||
| 224 | :options '(turn-on-eldoc-mode) | ||
| 225 | :type 'hook | ||
| 226 | :group 'lisp) | ||
| 227 | |||
| 208 | (defun emacs-lisp-mode () | 228 | (defun emacs-lisp-mode () |
| 209 | "Major mode for editing Lisp code to run in Emacs. | 229 | "Major mode for editing Lisp code to run in Emacs. |
| 210 | Commands: | 230 | Commands: |