dev: Improve displaying parenthesis

Add two modes `highlight-parentheses` and `rainbow-delimiters` to
improve the readability when several level of parenthesis are
involved.
This commit is contained in:
finga 2024-05-27 13:59:09 +02:00
parent 8bb1b07590
commit c69e7e43d8

View file

@ -10,6 +10,16 @@
(add-hook 'lisp-interaction-mode-hook #'enable-paredit-mode) (add-hook 'lisp-interaction-mode-hook #'enable-paredit-mode)
(add-hook 'scheme-mode-hook #'enable-paredit-mode)) (add-hook 'scheme-mode-hook #'enable-paredit-mode))
(use-package highlight-parentheses
:ensure t
:config
(global-highlight-parentheses-mode t))
(use-package rainbow-delimiters
:ensure t
:config
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode))
;; Hack to show only files known to git inside dired; needs the ;; 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) ;; `git-find' shell script shim (taken from :open https://r0tty.org/git/dotfiles/emacs/tree/.emacs.d/config/development.el)
(defun git-dired (dir) (defun git-dired (dir)