Skip to content

Commit b3ac167

Browse files
vspinubbatsov
authored andcommitted
[Fix #393] Don't hard-code imenu-generic-expression (#397)
1 parent caf783b commit b3ac167

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* [#394](https://github.com/clojure-emacs/clojure-mode/issues/394): `#` character now has prefix syntax class.
88
* Fixed indentation of `definterface` to match that of `defprotocol`.
99
* [#389](https://github.com/clojure-emacs/clojure-mode/issues/389): Fixed the indentation of `defrecord` and `deftype` multiple airity protocol forms.
10+
* [#393](https://github.com/clojure-emacs/clojure-mode/issues/393): `imenu-generic-expression` is no longer hard-coded and its global value is respected.
1011

1112
## 5.5.0 (2016-06-25)
1213

clojure-mode.el

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,7 @@ instead of to `clojure-mode-map'."
344344

345345
(defun clojure-mode-variables ()
346346
"Set up initial buffer-local variables for Clojure mode."
347-
(setq-local imenu-create-index-function
348-
(lambda ()
349-
(imenu--generic-function '((nil clojure-match-next-def 0)))))
347+
(add-to-list 'imenu-generic-expression '(nil clojure-match-next-def 0))
350348
(setq-local indent-tabs-mode nil)
351349
(setq-local paragraph-ignore-fill-prefix t)
352350
(setq-local outline-regexp ";;;\\(;* [^ \t\n]\\)\\|(")

0 commit comments

Comments
 (0)