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-09-04 11:15:08 +02:00
|
|
|
:hook
|
|
|
|
(emacs-lisp-mode . enable-paredit-mode)
|
|
|
|
(eval-expression-minibuffer-setup enable-paredit-mode)
|
|
|
|
(ielm-mode . enable-paredit-mode)
|
|
|
|
(lisp-mode . enable-paredit-mode)
|
|
|
|
(lisp-interaction-mode . enable-paredit-mode)
|
|
|
|
(scheme-mode . 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
|
2024-09-04 11:17:13 +02:00
|
|
|
:hook
|
|
|
|
(prog-mode . rainbow-delimiters-mode)
|
|
|
|
:custom-face
|
|
|
|
(rainbow-delimiters-depth-2-face ((t (:inherit rainbow-delimiters-base-face :foreground "cornflower blue"))))
|
|
|
|
(rainbow-delimiters-depth-3-face ((t (:inherit rainbow-delimiters-base-face :foreground "sandy brown"))))
|
|
|
|
(rainbow-delimiters-depth-4-face ((t (:inherit rainbow-delimiters-base-face :foreground "yellow green"))))
|
|
|
|
(rainbow-delimiters-depth-5-face ((t (:inherit rainbow-delimiters-base-face :foreground "powder blue"))))
|
|
|
|
(rainbow-delimiters-depth-6-face ((t (:inherit rainbow-delimiters-base-face :foreground "orchid"))))
|
|
|
|
(rainbow-delimiters-depth-7-face ((t (:inherit rainbow-delimiters-base-face :foreground "lemon chiffon"))))
|
|
|
|
(rainbow-delimiters-depth-8-face ((t (:inherit rainbow-delimiters-base-face :foreground "goldenrod"))))
|
|
|
|
(rainbow-delimiters-depth-9-face ((t (:inherit rainbow-delimiters-base-face :foreground "dark cyan")))))
|
2024-05-27 13:59:09 +02:00
|
|
|
|
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-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-10-02 08:52:57 +02:00
|
|
|
:ensure t)
|
|
|
|
|
|
|
|
(use-package lsp-ui
|
2024-05-27 13:47:27 +02:00
|
|
|
:ensure t
|
2024-10-02 08:52:57 +02:00
|
|
|
:bind
|
|
|
|
("C-c i" . lsp-ui-doc-show)
|
2024-09-12 10:36:33 +02:00
|
|
|
:config
|
2024-10-14 16:19:20 +02:00
|
|
|
(setq lsp-ui-doc-position 'at-point)
|
|
|
|
(setq lsp-ui-doc-show-with-mouse nil))
|
2024-10-16 14:21:06 +02:00
|
|
|
|
2024-10-17 09:23:15 +02:00
|
|
|
(use-package yasnippet
|
|
|
|
:ensure t)
|
|
|
|
|
2024-10-16 14:21:06 +02:00
|
|
|
(use-package company
|
|
|
|
:ensure t
|
|
|
|
:bind (:map company-active-map
|
2024-10-17 09:22:56 +02:00
|
|
|
("RET" . nil)
|
|
|
|
("<return>" . nil)
|
|
|
|
("M-RET" . company-complete-selection)))
|