Browse Source

fixes for use-package

master
marc 6 years ago
parent
commit
8aeb721684
2 changed files with 15 additions and 4 deletions
  1. 16
      config.org
  2. 3
      init.el

16
config.org

@ -395,9 +395,14 @@ Highlight whitespaces, tabs, empty lines.
(use-package whitespace (use-package whitespace
:demand t :demand t
:ensure nil :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 :config
(setq-default whitespace-style '(face empty tab trailing)) (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 Colorize colors as text with their value
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package rainbow-mode (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 :config
(setq-default rainbow-x-colors-major-mode-list '()) (setq-default rainbow-x-colors-major-mode-list '())
) )

3
init.el

@ -36,6 +36,9 @@
;; Bootstrap use-package ;; Bootstrap use-package
;; Install use-package if it's not already installed ;; Install use-package if it's not already installed
;; use-package is used to configure the rest of the packages ;; 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) (unless (package-installed-p 'use-package)
(package-refresh-contents) (package-refresh-contents)
(package-install 'use-package) (package-install 'use-package)

Loading…
Cancel
Save