Enable rainbow-delimiters-mode in sh-mode
This commit is contained in:
parent
40eda029ab
commit
ecf9c14229
1 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,8 @@
|
||||||
(1 'sh-quoted-exec prepend))
|
(1 'sh-quoted-exec prepend))
|
||||||
(,(regexp-opt +sh-builtin-keywords 'words)
|
(,(regexp-opt +sh-builtin-keywords 'words)
|
||||||
(0 'font-lock-type-face append))))
|
(0 'font-lock-type-face append))))
|
||||||
|
;; 4. Fontify delimiters by depth
|
||||||
|
(add-hook 'sh-mode-hook #'rainbow-delimiters-mode)
|
||||||
|
|
||||||
;; autoclose backticks
|
;; autoclose backticks
|
||||||
(sp-local-pair 'sh-mode "`" nil :unless '(sp-point-before-word-p sp-point-before-same-p))
|
(sp-local-pair 'sh-mode "`" nil :unless '(sp-point-before-word-p sp-point-before-same-p))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue