From 003c955ad9e63f574f03583f0b21f459bd4d9add Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 23 Feb 2021 21:40:13 -0800 Subject: [PATCH] =?UTF-8?q?Enable=20=E2=80=98electric-indent-local-mode?= =?UTF-8?q?=E2=80=99=20in=20CMake?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oni-cmake.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oni-cmake.el b/oni-cmake.el index e50166d..75f3d65 100644 --- a/oni-cmake.el +++ b/oni-cmake.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2021.0125.121453 +;; Version: 2021.0223.150922 ;; Package-Requires: (cmake-mode oni-company oni-fci oni-flycheck cmake-font-lock eldoc-cmake) ;; This program is free software; you can redistribute it and/or modify @@ -37,6 +37,7 @@ (add-hook 'cmake-mode-hook 'cmake-font-lock-activate) (add-hook 'cmake-mode-hook 'company-mode) (add-hook 'cmake-mode-hook 'eldoc-cmake-enable) +(add-hook 'cmake-mode-hook 'electric-indent-local-mode) (add-hook 'cmake-mode-hook 'electric-pair-local-mode) (add-hook 'cmake-mode-hook 'oni-cmake--auto-fill-mode) (add-hook 'cmake-mode-hook 'rainbow-delimiters-mode)