2025-12-14 04:51:24 +11:00
|
|
|
;; -*- lexical-binding: t -*-
|
|
|
|
|
|
2026-03-22 23:57:48 +11:00
|
|
|
(use-package xref
|
2026-03-20 22:04:25 +11:00
|
|
|
:init
|
2026-03-22 23:57:48 +11:00
|
|
|
;; Use faster search tool
|
|
|
|
|
(when (executable-find "rg")
|
|
|
|
|
(setq xref-search-program 'ripgrep))
|
2026-03-20 22:04:25 +11:00
|
|
|
|
2026-03-22 23:57:48 +11:00
|
|
|
;; Select from xref candidates in minibuffer
|
|
|
|
|
(setq xref-show-definitions-function #'xref-show-definitions-completing-read
|
|
|
|
|
xref-show-xrefs-function #'xref-show-definitions-completing-read))
|
2026-03-20 22:04:25 +11:00
|
|
|
|
2026-04-03 15:54:22 +11:00
|
|
|
(use-package apheleia :diminish
|
|
|
|
|
:hook (prog-mode))
|
2025-12-26 20:04:59 +08:00
|
|
|
|
2025-12-14 09:04:11 +11:00
|
|
|
(use-package editorconfig
|
|
|
|
|
:diminish
|
2026-04-02 19:21:30 +11:00
|
|
|
:hook elpaca-after-init)
|
2025-12-14 04:51:24 +11:00
|
|
|
|
2025-12-15 05:50:04 +11:00
|
|
|
(use-package docker-compose-mode)
|
|
|
|
|
|
2025-12-15 18:20:19 +11:00
|
|
|
(use-package treesit-auto
|
2026-04-02 19:21:30 +11:00
|
|
|
:hook (elpaca-after-init . global-treesit-auto-mode)
|
2025-12-15 18:20:19 +11:00
|
|
|
:custom
|
|
|
|
|
(treesit-auto-install 'prompt)
|
|
|
|
|
:config
|
|
|
|
|
(treesit-auto-add-to-auto-mode-alist 'all))
|
|
|
|
|
|
2025-12-16 08:23:57 +11:00
|
|
|
(use-package systemd)
|
|
|
|
|
|
2025-12-24 06:55:06 +08:00
|
|
|
(add-hook 'prog-mode-hook #'toggle-truncate-lines)
|
|
|
|
|
|
2025-12-14 04:51:24 +11:00
|
|
|
(provide 'init-coding)
|