File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -204,14 +204,16 @@ adjusted transparently."
204
204
(dtrt-indent-undo)))
205
205
206
206
;;;### autoload
207
- (define-globalized-minor-mode dtrt-indent-global-mode dtrt-indent-mode
208
- (lambda ()
207
+ (define-globalized-minor-mode dtrt-indent-global-mode dtrt-indent-mode dtrt-indent--mode
208
+ :group 'dtrt-indent )
209
+
210
+ ;;;### autoload
211
+ (defun dtrt-indent--mode ()
209
212
; ; javascript-mode is an alias for js-mode, so derived-mode-p does not
210
213
; ; detect it is derived from 'prog-mode (Emacs bug #46331: remove once
211
214
; ; Emacs >= 28.1 can be assumed)
212
215
(when (derived-mode-p 'prog-mode 'text-mode 'javascript-mode )
213
216
(dtrt-indent-mode)))
214
- :group 'dtrt-indent )
215
217
216
218
(defvar dtrt-indent-language-syntax-table
217
219
'((c/c++/java (" \" " 0 " \" " nil " \\\\ ." )
You can’t perform that action at this time.
0 commit comments