diff --git a/config.org b/config.org index 3c8461e..c9492a6 100644 --- a/config.org +++ b/config.org @@ -395,9 +395,14 @@ Highlight whitespaces, tabs, empty lines. (use-package whitespace :demand t :ensure nil - :hook - ((prog-mode . whitespace-turn-on) - (text-mode . whitespace-turn-on)) + :init + (dolist (hook '(prog-mode-hook + text-mode-hook + conf-mode-hook)) + (add-hook hook #'whitespace-mode)) +;; :hook ;;not working in use-package 2.3 +;; ((prog-mode . whitespace-turn-on) +;; (text-mode . whitespace-turn-on)) :config (setq-default whitespace-style '(face empty tab trailing)) ) @@ -416,7 +421,10 @@ Disable Eldoc, it interferes with flycheck Colorize colors as text with their value #+begin_src emacs-lisp (use-package rainbow-mode - :hook prog-mode + :ensure t + :init + (add-hook 'prog-mode-hook 'rainbow-mode t) +;; :hook prog-mode ;; not working in use-package 2.3 :config (setq-default rainbow-x-colors-major-mode-list '()) ) diff --git a/init.el b/init.el index dce9dcf..f74dddc 100644 --- a/init.el +++ b/init.el @@ -36,6 +36,9 @@ ;; Bootstrap use-package ;; Install use-package if it's not already installed ;; use-package is used to configure the rest of the packages +;; versuib 2018.03.11.2137 had troubles finding packages, +;; so stick with stable 2.3 +(push '(use-package . "melpa-stable") package-pinned-packages) (unless (package-installed-p 'use-package) (package-refresh-contents) (package-install 'use-package)