Skip to content

Commit dfaefab

Browse files
Borsodi, RegoBorsodi, Rego
authored andcommitted
Indent bars
1 parent 787ff4b commit dfaefab

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lisp/init-editing-utils.el

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
(js-json-mode . electric-indent-local-mode)
6969
(json-ts-mode . electric-indent-local-mode)
7070
(emacs-lisp-mode . electric-indent-local-mode)
71+
(typescript-ts-mode . electric-indent-local-mode)
7172

7273
(python-mode . electric-pair-local-mode)
7374
(python-ts-mode . electric-pair-local-mode)
@@ -76,6 +77,7 @@
7677
(c++-mode . electric-pair-local-mode)
7778
(sh-mode . electric-pair-local-mode)
7879
(bash-ts-mode . electric-pair-local-mode)
80+
(typescript-ts-mode . electric-pair-local-mode)
7981
)
8082
:config
8183
(electric-indent-mode -1)
@@ -89,6 +91,18 @@
8991

9092
(global-set-key (kbd "M-(") #'rb-insert-parens-around-sexp)
9193

94+
;; ----------------------------------------------------------------------------
95+
;; Indent bars
96+
;; ----------------------------------------------------------------------------
97+
98+
(use-package indent-bars
99+
:ensure t
100+
:pin gnu
101+
:hook ((python-mode python-ts-mode yaml-ts-mode) . indent-bars-mode)
102+
:config
103+
)
104+
105+
92106
;; ----------------------------------------------------------------------------
93107
;; Whitespace cleanup
94108
;; ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)