((c++-ts-mode . ((fmt-executable . "clang-format") (eval . (setq-local fmt-args `("--assume-filename" ,(buffer-file-name)))) (eval . (add-hook 'before-save-hook 'fmt-current-buffer nil t)) (eval . (add-to-list 'eglot-server-programs '(c++-mode . ("clangd" "-header-insertion=never" "-clang-tidy")))) (eval . (eglot-ensure)) (eval . (add-hook 'eglot-managed-mode-hook (lambda () (eglot-inlay-hints-mode -1)))) (eval . (company-mode 1)))) (meson-mode . ((fmt-executable . "meson") (fmt-args . ("format" "-")) (eval . (add-hook 'before-save-hook 'fmt-current-buffer nil t)))) (python-ts-mode . ((eval . (flycheck-mode 1)) (eval . (flycheck-select-checker 'python-mypy)) (eval . (flycheck-add-next-checker 'python-mypy (cons t 'python-flake8))) (eval . (add-hook 'before-save-hook 'fmt-current-buffer nil t)) (eval . (setq-local fmt-executable "black" fmt-args '("-"))))))