1
0
Fork 0

[oni-c] Add ‘rainbow-delimiters’

This commit is contained in:
Tom Willemse 2021-07-28 20:35:05 -07:00
parent 97b4372273
commit 1b3e25051d
Signed by: ryuslash
GPG key ID: 7D5C407B435025C1

View file

@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2021.0715.222936 ;; Version: 2021.0727.221058
;; Package-Requires: (oni-flycheck oni-lsp reformatter ccls) ;; Package-Requires: (oni-flycheck oni-lsp reformatter ccls rainbow-delimiters)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by ;; it under the terms of the GNU General Public License as published by
@ -55,6 +55,7 @@
(add-hook 'c-mode-hook 'electric-indent-local-mode) (add-hook 'c-mode-hook 'electric-indent-local-mode)
(add-hook 'c-mode-hook 'electric-pair-local-mode) (add-hook 'c-mode-hook 'electric-pair-local-mode)
(add-hook 'c-mode-hook 'flycheck-mode) (add-hook 'c-mode-hook 'flycheck-mode)
(add-hook 'c-mode-hook 'rainbow-delimiters-mode)
(define-abbrev c-mode-abbrev-table "and" "&&" nil :system t) (define-abbrev c-mode-abbrev-table "and" "&&" nil :system t)
(define-abbrev c-mode-abbrev-table "or" "||" nil :system t) (define-abbrev c-mode-abbrev-table "or" "||" nil :system t)