Move mode switches to use-package :init
This commit is contained in:
parent
09a339839b
commit
dffe201b1d
@ -61,15 +61,17 @@
|
|||||||
;; Volatile highlights - highlight changes caused by undo, yank, etc.
|
;; Volatile highlights - highlight changes caused by undo, yank, etc.
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
|
|
||||||
(use-package volatile-highlights)
|
(use-package volatile-highlights
|
||||||
(volatile-highlights-mode t)
|
:init
|
||||||
|
(volatile-highlights-mode t))
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
;; Undo tree. To undo "C-\", to redo "C-_", undo tree "C-x u".
|
;; Undo tree. To undo "C-\", to redo "C-_", undo tree "C-x u".
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
|
|
||||||
(use-package undo-tree)
|
(use-package undo-tree
|
||||||
(global-undo-tree-mode)
|
:init
|
||||||
|
(global-undo-tree-mode))
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
;; Use UTF-8.
|
;; Use UTF-8.
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
(defun init-packages/init-helm ()
|
(defun init-packages/init-helm ()
|
||||||
|
|
||||||
(use-package helm
|
(use-package helm
|
||||||
|
:init
|
||||||
|
(helm-mode 1)
|
||||||
:bind
|
:bind
|
||||||
(("C-x C-f" . helm-find-files)
|
(("C-x C-f" . helm-find-files)
|
||||||
("M-x" . helm-M-x)
|
("M-x" . helm-M-x)
|
||||||
@ -119,6 +121,4 @@
|
|||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
(helm-mode 1)
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
@ -49,6 +49,9 @@
|
|||||||
(add-hook 'prog-mode-hook 'highlight-parentheses-mode))
|
(add-hook 'prog-mode-hook 'highlight-parentheses-mode))
|
||||||
|
|
||||||
(use-package smartparens
|
(use-package smartparens
|
||||||
|
:init
|
||||||
|
(smartparens-global-mode t)
|
||||||
|
(show-smartparens-global-mode t)
|
||||||
:config
|
:config
|
||||||
(require 'smartparens-config)
|
(require 'smartparens-config)
|
||||||
|
|
||||||
@ -109,7 +112,4 @@
|
|||||||
;; Do not highlight space between parentheses.
|
;; Do not highlight space between parentheses.
|
||||||
sp-highlight-pair-overlay nil))
|
sp-highlight-pair-overlay nil))
|
||||||
|
|
||||||
(smartparens-global-mode t)
|
|
||||||
(show-smartparens-global-mode t)
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
@ -43,8 +43,9 @@
|
|||||||
;; Enable yasnippet.
|
;; Enable yasnippet.
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
|
|
||||||
(use-package yasnippet)
|
(use-package yasnippet
|
||||||
(yas-global-mode 1)
|
:init
|
||||||
|
(yas-global-mode 1))
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
;; Automatically indent yanked text in programming mode.
|
;; Automatically indent yanked text in programming mode.
|
||||||
|
@ -31,12 +31,11 @@
|
|||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
|
|
||||||
(use-package workgroups2
|
(use-package workgroups2
|
||||||
|
:init
|
||||||
|
(workgroups-mode 1)
|
||||||
:config
|
: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)
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user