Skip to content

Commit

Permalink
Fix a docstring format warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rrthomas committed Jan 26, 2025
1 parent 084ae8c commit 61b856e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dtrt-indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,16 @@ adjusted transparently."
(dtrt-indent-undo)))

;;;###autoload
(define-globalized-minor-mode dtrt-indent-global-mode dtrt-indent-mode
(lambda ()
(define-globalized-minor-mode dtrt-indent-global-mode dtrt-indent-mode dtrt-indent--mode
:group 'dtrt-indent)

;;;###autoload
(defun dtrt-indent--mode ()
;; javascript-mode is an alias for js-mode, so derived-mode-p does not
;; detect it is derived from 'prog-mode (Emacs bug #46331: remove once
;; Emacs >= 28.1 can be assumed)
(when (derived-mode-p 'prog-mode 'text-mode 'javascript-mode)
(dtrt-indent-mode)))
:group 'dtrt-indent)

(defvar dtrt-indent-language-syntax-table
'((c/c++/java ("\"" 0 "\"" nil "\\\\.")
Expand Down

0 comments on commit 61b856e

Please sign in to comment.