Skip to content

Commit dbb2a72

Browse files
committed
Expand on the inline docstring check
1 parent 686f43b commit dbb2a72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clojure-mode.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,8 @@ replacement for `cljr-expand-let`."
557557
;; and comments, force indentation of non-inlined docstrings:
558558
(add-hook 'electric-indent-functions
559559
(lambda (_char) (if (and (clojure-in-docstring-p)
560+
;; make sure we're not dealing with an inline docstring
561+
;; e.g. (def foo "inline docstring" bar)
560562
(save-excursion
561563
(beginning-of-line-text)
562564
(eq (get-text-property (point) 'face)

0 commit comments

Comments
 (0)