 
 (use-package paredit
   :diminish
-  :init
-  (add-hook 'emacs-lisp-mode-hook #'paredit-mode)
-  (add-hook 'lisp-mode-hook #'paredit-mode)
-  (add-hook 'scheme-mode-hook #'paredit-mode)
-  (add-hook 'ielm-mode-hook #'paredit-mode)
-  (add-hook 'clojure-mode-hook #'paredit-mode))
+  :hook ((emacs-lisp-mode lisp-mode scheme-mode ielm-mode clojure-mode) . paredit-mode))
 
 (use-package smex
   :init

(use-package company
  :diminish
  :init (global-company-mode)
  :config
  (setq company-tooltip-limit 20
        company-idle-delay .3
        company-echo-delay 0
        company-begin-commands '(self-insert-command)))

(use-package lsp-mode
  :commands lsp

    ("q" nil)))

(use-package olivetti
  :custom
  (olivetti-hide-mode-line t))

(use-package flycheck
  :init (global-flycheck-mode)
