yara mode for GNU Emacs to edit yara related files.
(require ‘yara-mode)
- install the `yls` from https://github.com/avast/yls `pip install -U yls-yara`
- set up a custom language server in the `init.el`
(with-eval-after-load 'lsp-mode
(add-to-list 'lsp-language-id-configuration
'(yara-mode . "yara"))
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection "yls")
:activation-fn (lsp-activate-on "yara")
:server-id 'yls)))