Skip to content

Commit e6adef4

Browse files
buzztaikiFuco1
authored andcommitted
use local variable idiom
1 parent 46089e4 commit e6adef4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

terraform-mode.el

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

406406
;; imenu
407-
(make-local-variable 'imenu-sort-function)
408-
(setq imenu-sort-function 'imenu--sort-by-name)
407+
(set (make-local-variable 'imenu-sort-function) 'imenu--sort-by-name)
409408
(setq imenu-create-index-function 'terraform--generate-imenu)
410409
(imenu-add-to-menubar "Terraform"))
411410

0 commit comments

Comments
 (0)