fix(emacs.d): Fix uses use-package's :config instead of :init

In several places I used `:init` instead of `:config` and things
worked due to lazy loading anyways.

That's no excuse not to fix it though ...
This commit is contained in:
Vincent Ambo 2019-12-15 22:15:11 +00:00
parent 6ee061e205
commit 97555884e2

View file

@ -19,11 +19,11 @@
(use-package ace-window (use-package ace-window
:bind (("C-x o" . ace-window)) :bind (("C-x o" . ace-window))
:init :config
(setq aw-keys '(?f ?j ?d ?k ?s ?l ?a) (setq aw-keys '(?f ?j ?d ?k ?s ?l ?a)
aw-scope 'frame)) aw-scope 'frame))
(use-package auth-source-pass :init (auth-source-pass-enable)) (use-package auth-source-pass :config (auth-source-pass-enable))
(use-package avy (use-package avy
:bind (("M-j" . avy-goto-char) :bind (("M-j" . avy-goto-char)
@ -34,7 +34,7 @@
(use-package company (use-package company
:hook ((prog-mode . company-mode)) :hook ((prog-mode . company-mode))
:init (setq company-tooltip-align-annotations t)) :config (setq company-tooltip-align-annotations t))
(use-package dash) (use-package dash)
(use-package dash-functional) (use-package dash-functional)
@ -47,19 +47,19 @@
(emacs-lisp-mode . paredit-mode))) (emacs-lisp-mode . paredit-mode)))
(use-package multiple-cursors) (use-package multiple-cursors)
(use-package pinentry (use-package pinentry
:init :config
(setq epa-pinentry-mode 'loopback) (setq epa-pinentry-mode 'loopback)
(pinentry-start)) (pinentry-start))
(use-package rainbow-delimiters :hook (prog-mode . rainbow-delimiters-mode)) (use-package rainbow-delimiters :hook (prog-mode . rainbow-delimiters-mode))
(use-package rainbow-mode) (use-package rainbow-mode)
(use-package s) (use-package s)
(use-package smartparens :init (smartparens-global-mode)) (use-package smartparens :config (smartparens-global-mode))
(use-package string-edit) (use-package string-edit)
(use-package telephone-line) ;; configuration happens outside of use-package (use-package telephone-line) ;; configuration happens outside of use-package
(use-package undo-tree :init (global-undo-tree-mode)) (use-package undo-tree :config (global-undo-tree-mode))
(use-package uuidgen) (use-package uuidgen)
(use-package which-key :init (which-key-mode t)) (use-package which-key :config (which-key-mode t))
;; ;;
;; Applications in emacs ;; Applications in emacs
@ -67,7 +67,7 @@
(use-package magit (use-package magit
:bind ("C-c g" . magit-status) :bind ("C-c g" . magit-status)
:init (setq magit-repository-directories '(("/home/vincent/projects" . 2)))) :config (setq magit-repository-directories '(("/home/vincent/projects" . 2))))
(use-package password-store) (use-package password-store)
(use-package pg) (use-package pg)
@ -101,7 +101,7 @@
(use-package haskell-mode) (use-package haskell-mode)
(use-package jq-mode (use-package jq-mode
:init (add-to-list 'auto-mode-alist '("\\.jq\\'" . jq-mode))) :config (add-to-list 'auto-mode-alist '("\\.jq\\'" . jq-mode)))
(use-package kotlin-mode (use-package kotlin-mode
:hook ((kotlin-mode . (lambda () :hook ((kotlin-mode . (lambda ()
@ -110,7 +110,7 @@
(use-package lsp-mode) (use-package lsp-mode)
(use-package markdown-mode (use-package markdown-mode
:init :config
(add-to-list 'auto-mode-alist '("\\.txt\\'" . markdown-mode)) (add-to-list 'auto-mode-alist '("\\.txt\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode)) (add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))) (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)))