File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 8
8
; ; Version : 0.10.0
9
9
; ; Keywords : c# languages oop mode
10
10
; ; X-URL : https://github.com/josteink/csharp-mode
11
- ; ; Package-Requires: ((emacs "26.1") (tree-sitter "0.12.1") (tree-sitter-indent "0.1"))
11
+ ; ; Package-Requires: ((emacs "26.1") (tree-sitter "0.12.1") (tree-sitter-indent "0.1") (aggressive-indent "1.8.4") )
12
12
13
13
; ; This program is free software; you can redistribute it and/or modify
14
14
; ; it under the terms of the GNU General Public License as published by
30
30
(require 'tree-sitter )
31
31
(require 'tree-sitter-hl )
32
32
(require 'tree-sitter-indent )
33
+ (require 'aggressive-indent )
33
34
34
35
; ;; Tree-sitter
35
36
@@ -271,7 +272,7 @@ Key bindings:
271
272
(setq csharp-mode-map nil )
272
273
(setq-local tree-sitter-indent-current-scopes csharp-mode-indent-scopes)
273
274
(setq-local tree-sitter-indent-offset csharp-mode-indent-offset)
274
- (setq-local indent-line-function #'csharp-mode -indent-line )
275
+ (setq-local indent-line-function #'tree-sitter -indent-line )
275
276
276
277
; ; https://github.com/ubolonton/emacs-tree-sitter/issues/84
277
278
(unless font-lock-defaults
@@ -281,7 +282,8 @@ Key bindings:
281
282
(setq-local comment-start " // " )
282
283
(setq-local comment-end " " )
283
284
284
- (tree-sitter-hl-mode))
285
+ (tree-sitter-hl-mode)
286
+ (aggressive-indent-mode ))
285
287
286
288
;;;### autoload
287
289
(add-to-list 'tree-sitter-major-mode-language-alist '(csharp-tree-sitter-mode . c-sharp))
You can’t perform that action at this time.
0 commit comments