From 9a0627bad0c7bb1c6afbe7ae118e243eaa4a0658 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 15 Nov 2023 11:36:50 +0100 Subject: [PATCH] dev: Reformat deadgrep and paredit config --- .emacs.d/config/dev.el | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.emacs.d/config/dev.el b/.emacs.d/config/dev.el index 14fcee8..2e61526 100644 --- a/.emacs.d/config/dev.el +++ b/.emacs.d/config/dev.el @@ -19,18 +19,20 @@ ;; use ripgrep in emacs (use-package deadgrep - :ensure t - :bind ("M-s d" . deadgrep)) + :ensure t + :bind ("M-s d" . deadgrep)) ;; paredit -(use-package paredit :ensure t) -(autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t) -(add-hook 'emacs-lisp-mode-hook #'enable-paredit-mode) -(add-hook 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode) -(add-hook 'ielm-mode-hook #'enable-paredit-mode) -(add-hook 'lisp-mode-hook #'enable-paredit-mode) -(add-hook 'lisp-interaction-mode-hook #'enable-paredit-mode) -(add-hook 'scheme-mode-hook #'enable-paredit-mode) +(use-package paredit + :ensure t + :config + (autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t) + (add-hook 'emacs-lisp-mode-hook #'enable-paredit-mode) + (add-hook 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode) + (add-hook 'ielm-mode-hook #'enable-paredit-mode) + (add-hook 'lisp-mode-hook #'enable-paredit-mode) + (add-hook 'lisp-interaction-mode-hook #'enable-paredit-mode) + (add-hook 'scheme-mode-hook #'enable-paredit-mode)) ;; Hack to show only files known to git inside dired; needs the ;; `git-find' shell script shim (taken from :open https://r0tty.org/git/dotfiles/emacs/tree/.emacs.d/config/development.el)