Skip to content

Commit 80383ff

Browse files
make imenu-sort-function as local variable in terraform-mode (#65)
* make imenu-sort-function as local variable in terraform-mode * use local variable idiom --------- Co-authored-by: Reza Nikoopour <[email protected]>
1 parent 5bdd734 commit 80383ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terraform-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ If the point is not at the heading, call
404404
(terraform--setup-outline-mode)
405405

406406
;; imenu
407-
(setq imenu-sort-function 'imenu--sort-by-name)
407+
(set (make-local-variable 'imenu-sort-function) 'imenu--sort-by-name)
408408
(setq imenu-create-index-function 'terraform--generate-imenu)
409409
(imenu-add-to-menubar "Terraform"))
410410

0 commit comments

Comments
 (0)