diff options
| author | jao <jao@gnu.org> | 2026-02-17 12:39:22 +0000 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2026-02-17 12:39:48 +0000 |
| commit | b995215b2a2e5642299e9c3d19327fd10f1c2545 (patch) | |
| tree | 2dfb0d40a74d37dfd69280755ff5666ce02b029c | |
| parent | ba237643320ab3375e42e0e3ec76ec88c9d21162 (diff) | |
| download | elibs-b995215b2a2e5642299e9c3d19327fd10f1c2545.tar.gz elibs-b995215b2a2e5642299e9c3d19327fd10f1c2545.tar.bz2 | |
rust/flycheck/xref buffer handling
| -rw-r--r-- | custom/jao-custom-programming.el | 7 | ||||
| -rw-r--r-- | init.el | 8 | ||||
| -rw-r--r-- | lib/prog/jao-compilation.el | 2 |
3 files changed, 14 insertions, 3 deletions
diff --git a/custom/jao-custom-programming.el b/custom/jao-custom-programming.el index 8a324f8..2fd1212 100644 --- a/custom/jao-custom-programming.el +++ b/custom/jao-custom-programming.el @@ -108,7 +108,6 @@ :ensure t :custom ((flymake-mode-line-format '(" " flymake-mode-line-counters))) :config - (jao-define-attached-buffer "^\\*Flymake diagnostics .*\\*\\'") (transient-define-prefix jao-transient-flymake () ["Flymake" @@ -118,6 +117,12 @@ ("p" "previous error" flymake-goto-prev-error) ("c" "consult flymake" consult-flymake)]) + (add-to-list 'display-buffer-alist + '("^\\*Flymake diagnostics .*\\*\\'" + (display-buffer-reuse-window jao-display-below-eldoc) + (height . 0.3) + (dedicated . t))) + :bind (:map flymake-mode-map (("M-m" . jao-transient-flymake) ("M-n" . flymake-goto-next-error) ("M-p" . flymake-goto-prev-error)))) @@ -970,6 +970,10 @@ (add-to-list 'display-buffer-alist (jao-attached-buffer-entry name-rx height))) +(use-package xref + :config + (jao-define-attached-buffer "^\\*xref\\*")) + ;;;; same mode (defun jao-buffer-same-mode (&optional mode pre-fn switch-fn) (interactive) @@ -1654,11 +1658,13 @@ ;;;; json (use-package json-mode :ensure t) ;;;; yaml -(use-package yaml-mode :disabled t :ensure t) +(use-package yaml-mode :ensure t) ;;;; toml (use-package eldoc-toml :ensure t) (use-package toml-ts-mode :config (add-to-list 'auto-mode-alist '("`.*\\.toml" . toml-ts-mode))) +;;;; protobuf +(use-package protobuf-mode :ensure t) ;;; Graphics (setq image-use-external-converter t diff --git a/lib/prog/jao-compilation.el b/lib/prog/jao-compilation.el index b690556..6c67a7d 100644 --- a/lib/prog/jao-compilation.el +++ b/lib/prog/jao-compilation.el @@ -111,7 +111,7 @@ "Makefile" "makefile" "configure.ac" "Cargo.toml" "deps.edn" "project.clj" "build.xml" "pom.xml" "setup.py" "stack.yaml") (with-eval-after-load "project" - (add-to-list 'project-find-functions #'jao-find-compilation-root))) + (add-to-list 'project-find-functions #'jao-find-compilation-root t))) (provide 'jao-compilation) |
