From 55d22a91c28dc911bc978642d876661e23078a79 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Tue, 9 Feb 2021 06:25:57 -0300 Subject: [PATCH] Enable Rainbow-parens --- emacs.d/init.el | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/emacs.d/init.el b/emacs.d/init.el index d7827c7..2eb8faa 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -94,9 +94,6 @@ :config (setq doom-themes-enable-bold t doom-themes-enable-italic t) (load-theme 'doom-molokai t)) -; (setq-default fill-column 80) -; (define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1))) -; (global-fci-mode 1) ;; highlights the current line (use-package hlinum @@ -126,11 +123,17 @@ (setq whitespace-style '(face empty tabs lines-tail trailing)) (global-whitespace-mode t) -;; Snippets +;; Snippets (snippets reside in ~/.emacs.d/snippets/ and should be +;; kept in a directory with mode name) (use-package yasnippet :ensure t) (yas-global-mode 1) +;; colorize parens +(use-package rainbow-delimiters + :ensure t + :config (add-hook 'prog-mode-hook #'rainbow-delimiters-mode)) + ;; auto-pairs (electric-pair-mode 1) @@ -145,6 +148,11 @@ (line-number-mode 1) (column-number-mode 1) +;; column highlight +(setq-default fill-column 80) +(define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1))) +(global-fci-mode 1) + ;; line numbers (global-linum-mode 1) (defun configure-linum-colors ()