diff options
author | Vincent Ambo <tazjin@google.com> | 2019-12-15T22·15+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-12-15T22·54+0000 |
commit | 97555884e24a1dfc47975d212c418d8577305693 (patch) | |
tree | 8e2f5c6af6f2054f93ab21d744a7a75c89a68695 | |
parent | 6ee061e2051af470ecd6d94ce028d48f9789a7e2 (diff) |
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 ...
-rw-r--r-- | tools/emacs/config/init.el | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/emacs/config/init.el b/tools/emacs/config/init.el index 4c7806f0e54d..19ae1e056be3 100644 --- a/tools/emacs/config/init.el +++ b/tools/emacs/config/init.el @@ -19,11 +19,11 @@ (use-package ace-window :bind (("C-x o" . ace-window)) - :init + :config (setq aw-keys '(?f ?j ?d ?k ?s ?l ?a) 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 :bind (("M-j" . avy-goto-char) @@ -34,7 +34,7 @@ (use-package company :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-functional) @@ -47,19 +47,19 @@ (emacs-lisp-mode . paredit-mode))) (use-package multiple-cursors) (use-package pinentry - :init + :config (setq epa-pinentry-mode 'loopback) (pinentry-start)) (use-package rainbow-delimiters :hook (prog-mode . rainbow-delimiters-mode)) (use-package rainbow-mode) (use-package s) -(use-package smartparens :init (smartparens-global-mode)) +(use-package smartparens :config (smartparens-global-mode)) (use-package string-edit) (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 which-key :init (which-key-mode t)) +(use-package which-key :config (which-key-mode t)) ;; ;; Applications in emacs @@ -67,7 +67,7 @@ (use-package magit :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 pg) @@ -101,7 +101,7 @@ (use-package haskell-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 :hook ((kotlin-mode . (lambda () @@ -110,7 +110,7 @@ (use-package lsp-mode) (use-package markdown-mode - :init + :config (add-to-list 'auto-mode-alist '("\\.txt\\'" . markdown-mode)) (add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode)) (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))) |