2023-11-15 11:36:50 +01:00
|
|
|
(use-package paredit
|
2024-05-27 13:47:27 +02:00
|
|
|
:ensure t
|
|
|
|
:config
|
|
|
|
(autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t)
|
2024-06-27 21:09:42 +02:00
|
|
|
(add-hook 'emacs-lisp-mode-hook #'enable-paredit-mode)
|
2024-05-27 13:47:27 +02:00
|
|
|
(add-hook 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode)
|
2024-06-27 21:09:42 +02:00
|
|
|
(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))
|
2019-07-10 23:27:54 +02:00
|
|
|
|
2024-05-27 13:59:09 +02:00
|
|
|
(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))
|
|
|
|
|
2019-07-10 23:27:54 +02:00
|
|
|
;; 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)
|
|
|
|
(defun git-dired (dir)
|
|
|
|
(interactive (list (read-directory-name "Find files in directory: " nil "" t)))
|
|
|
|
(let ((find-program "git-find"))
|
|
|
|
(find-dired dir "")))
|
2023-07-14 12:47:31 +02:00
|
|
|
|
2023-11-15 11:41:49 +01:00
|
|
|
;; python
|
|
|
|
;; (defun my-shell-mode-hook ()
|
|
|
|
;; (add-hook
|
|
|
|
;; 'comint-output-filter-functions
|
|
|
|
;; 'python-pdbtrack-comint-output-filter-function t))
|
|
|
|
;; (add-hook 'shell-mode-hook 'my-shell-mode-hook)
|
|
|
|
|
2023-07-14 12:49:34 +02:00
|
|
|
;; enable flyspell checks for comments in code
|
|
|
|
(add-hook 'prog-mode-hook #'flyspell-prog-mode)
|
2023-11-15 11:41:49 +01:00
|
|
|
|
|
|
|
(use-package lsp-mode
|
2024-05-27 13:47:27 +02:00
|
|
|
:ensure t
|
2024-06-05 09:22:26 +02:00
|
|
|
:hook
|
|
|
|
(rust-mode . lsp-deferred)
|
|
|
|
(toml-mode . lsp-deferred))
|