emacs packages
mori
stigma at disroot.org
Fri Feb 19 13:17:22 UTC 2021
On Monday, 8 February 2021 at 09:10:26 UTC, glis-glis wrote:
> Autocompletion with company-dcd and syntax check with flycheck
> mostly work fine, but they
> are not able to find my packages installed with DUB. Also,
> company-dcd-goto-definition
> only works for the standard-library, it is not able to find the
> definition of my own
> functions nor packages I installed with DUB.
Unfortunately, I can't help here as I only use d-mode for syntax
highlighting.
> Is there a dfmt-package for emacs? I still use clang-format,
> which kind of works for D-code except when the syntax does not
> exist in C++ (for example "=>" ).
I haven't used clang-format nor do I know if there is a dfmt
package, but you could define a function that runs "dfmt" on the
current file. I can share a basic implementation if you need.
You could also take a look at [uncrustify] which has support for
D, though I haven't used it. There even seem to be some (old,
but hopefully working,) modes for it:
- https://github.com/glima/Emacs-uncrustify
- https://github.com/koko1000ban/emacs-uncrustify-mode
[uncrustify]: http://uncrustify.sourceforge.net/
More information about the Digitalmars-d-ide
mailing list