flycheck module for syslog-ng configuration files
syslogngconf-mode is hard dependency. For details, please check syslogngconf-mode.
Add this line to your emacs configuration:
(add-to-list 'package-archives
'("bagolyodu" . "https://bagolyodu.dyndns.hu/emacs-packages/") t)
Then you can install flycheck-syslogngconf via package manager. For example with use-package module:
(use-package flycheck-syslogngconf :ensure t)
(use-package flycheck-syslogngconf
:load-path "<path to the git clone>")
To enable flycheck globally:
(global-flycheck-mode)
To enable manually
M-x flycheck-mode
If syslog-ng is installed to a non-standard location, you can specify the binary location using:
(set-variable 'flycheck-syslogngconf-executable "<path of the syslog-ng binary>")
For example:
(add-hook 'syslogngconf-mode-hook
(lambda () (set-variable
'flycheck-syslogngconf-executable
(concat (syslogng-autodetect-root) "/sbin/syslog-ng" ))))