From 1ef44eeec3cbf87d9aa259525bfc0b916d79fc18 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 24 Mar 2012 11:44:08 +0000 Subject: [PATCH] Set key in css-mode to call newline-and-indent --- mode-customizations/css-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mode-customizations/css-mode.el b/mode-customizations/css-mode.el index 6180993..13cb2d1 100644 --- a/mode-customizations/css-mode.el +++ b/mode-customizations/css-mode.el @@ -5,4 +5,5 @@ (fci-mode) (setq css-indent-offset 2) (setq highlight-indentation-offset 2) - (highlight-indentation-mode))) + (highlight-indentation-mode) + (define-key css-mode-map (kbd "RET") 'newline-and-indent)))