Skip to content

Commit 4f8bed3

Browse files
committed
Fix lint and byte-compilation warnings
- Shorten a docstring line exceeding 80 columns - Move closing parens to the same line (elisp-lint style) - Inline derived-mode-hook-name for Emacs 28-29 compatibility
1 parent b7a23a0 commit 4f8bed3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

inf-clojure.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ via `inf-clojure--merge-repl-features'.")
146146
(clojure-clr . ,(inf-clojure--merge-repl-features
147147
inf-clojure--clojure-repl-base-features
148148
'((arglists .
149-
"(try (-> '%s clojure.core/resolve clojure.core/meta :arglists) (catch Exception e nil))"))))
150-
))
149+
"(try (-> '%s clojure.core/resolve clojure.core/meta :arglists) (catch Exception e nil))"))))))
150+
151151

152152
(defvar-local inf-clojure-repl-type nil
153153
"Symbol to define your REPL type.
@@ -577,7 +577,7 @@ whatever namespace the REPL is currently in."
577577
See command `inf-clojure-minor-mode'."
578578
(interactive)
579579
(dolist (mode (inf-clojure--get-preferred-major-modes))
580-
(add-hook (derived-mode-hook-name mode) #'inf-clojure-minor-mode))
580+
(add-hook (intern (concat (symbol-name mode) "-hook")) #'inf-clojure-minor-mode))
581581
(dolist (buffer (inf-clojure--clojure-buffers))
582582
(with-current-buffer buffer
583583
(inf-clojure-minor-mode +1))))
@@ -614,7 +614,7 @@ Clojure source.
614614
`inf-clojure-load-file' loads a Clojure file into the REPL.
615615
`inf-clojure-reload' reloads the current namespace (with `M--' prefix
616616
for :reload-all).
617-
`inf-clojure-set-ns' sets the REPL namespace to the ns of the current buffer.
617+
`inf-clojure-set-ns' sets the REPL namespace to the current ns.
618618
619619
Prefixing the inf-clojure-eval/defun/region commands with
620620
a \\[universal-argument] causes a switch to the Clojure process buffer after

0 commit comments

Comments
 (0)