Skip to content

Commit faa9788

Browse files
author
Bozhidar Batsov
committed
Remove a couple of useless settings from clojure-mode.
In derived modes the keymap, the syntax table and the abbrev table are set automatically, based on the major-mode's name. (interactive) is also added automatically.
1 parent f5f2fe4 commit faa9788

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

clojure-mode.el

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -385,15 +385,11 @@ or to switch back to an existing one.
385385
386386
Entry to this mode calls the value of `clojure-mode-hook'
387387
if that value is non-nil."
388-
(interactive)
389-
(use-local-map clojure-mode-map)
390388
(set (make-local-variable 'imenu-create-index-function)
391389
(lambda ()
392390
(imenu--generic-function '((nil clojure-match-next-def 0)))))
393-
(set (make-local-variable 'local-abbrev-table) clojure-mode-abbrev-table)
394391
(set (make-local-variable 'indent-tabs-mode) nil)
395392
(lisp-mode-variables nil)
396-
(set-syntax-table clojure-mode-syntax-table)
397393
(set (make-local-variable 'comment-start-skip)
398394
"\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\)\\(;+\\|#|\\) *")
399395
(set (make-local-variable 'lisp-indent-function)
@@ -407,7 +403,6 @@ if that value is non-nil."
407403
(set (make-local-variable 'parse-sexp-ignore-comments) t)
408404

409405
(clojure-mode-font-lock-setup)
410-
411406
(add-hook 'paredit-mode-hook
412407
(lambda ()
413408
(when (>= paredit-version 21)

0 commit comments

Comments
 (0)