I wrote a Flycheck frontend for LDC. It installs into Emacs fine, and I remember to require
it, but for some reason, it doesn't automatically enable itself when I open a file in d-mode
. What did I miss?
Edit: As per request, here are the relevant parts of my init file:
;;D
(autoload 'd-mode "d-mode" "Major mode for editing D code." t)
(add-to-list 'auto-mode-alist '("\\.d[i]?\\'" . d-mode))
;;Flycheck
(require 'flycheck-ldc)
(add-hook 'after-init-hook #'global-flycheck-mode)
(setq-default flycheck-disabled-checkers '(c/c++-clang))
Edit 2: As per request, here is the result of C-c ! v
in a d-mode
buffer:
Syntax checkers for buffer logic.d in d-mode:
d-dmd
- predicate: nil
- executable: Not found
Flycheck Mode is enabled.
The following syntax checkers are not registered:
- d-ldc
Try adding these syntax checkers to `flycheck-checkers'.
d-mode
buffers? For instance, automatically with(add-hook 'd-mode-hook 'flycheck-mode)
global-flycheck-mode
, so my suggestion in the previous comment should not be necessary.C-c ! v
in a D Mode buffer, and add the contents of the buffer which pops up to your question. Feel free to use a screenshot if that's convenient for you.