Configure loads with use-package correctly

This commit is contained in:
Wojciech Kozlowski 2017-08-27 16:25:44 +01:00
parent 4e30221196
commit 097221e724
3 changed files with 24 additions and 15 deletions

View File

@ -31,16 +31,21 @@
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------
;; Parentheses highlighting. ;; Parentheses highlighting.
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------
(use-package rainbow-delimiters) (use-package rainbow-delimiters
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode) :defer t
:init
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode))
(use-package highlight-parentheses) (use-package highlight-parentheses
:defer t
:init
(add-hook 'prog-mode-hook 'show-paren-mode) (add-hook 'prog-mode-hook 'show-paren-mode)
(add-hook 'prog-mode-hook 'highlight-parentheses-mode) (add-hook 'prog-mode-hook 'highlight-parentheses-mode)
:config
(setq hl-paren-colors '("#86DC2F" (setq hl-paren-colors '("#86DC2F"
"IndianRed1" "IndianRed1"
"IndianRed3" "IndianRed3"
"IndianRed4")) "IndianRed4")))
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------
;; Use UTF-8. ;; Use UTF-8.

View File

@ -29,7 +29,8 @@
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------
;; Load and configure `magit'. ;; Load and configure `magit'.
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------
(use-package magit) (use-package magit
:defer t)
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------
;; Diff mode settings. ;; Diff mode settings.

View File

@ -30,11 +30,14 @@
;; Enable `workgroups'. ;; Enable `workgroups'.
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------
(use-package workgroups2) (use-package workgroups2
(workgroups-mode 1) :defer t
:config
;; Don't save. Workgroups are transient to the session. ;; Don't save. Workgroups are transient to the session.
(setq wg-emacs-exit-save-behavior nil) (setq wg-emacs-exit-save-behavior nil)
(setq wg-workgroups-mode-exit-save-behavior nil) (setq wg-workgroups-mode-exit-save-behavior nil))
;; Enable workgroups mode.
(workgroups-mode 1)
) )