From 14bb84a04c3fa725eebffebf2fc4eddcd10ee13d Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Wed, 30 Aug 2017 16:42:46 +0100 Subject: [PATCH] Emacs: Init rainbow-mode --- .emacs.d/init.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 640355af..1f8c45e2 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -254,6 +254,12 @@ ;;; Python (with-eval-after-load 'python (require 'init-python)) +;;; Rainbow-mode +(nconc package-selected-packages '(rainbow-mode)) +(when (require 'rainbow-mode nil t) + (dolist (hook '(css-mode-hook html-mode-hook sass-mode-hook)) + (add-hook hook 'rainbow-mode))) + ;;; Roff / Nroff (with-eval-after-load 'nroff-mode (require 'init-nroff))