Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.39 KB

README.org

File metadata and controls

51 lines (40 loc) · 1.39 KB

flycheck-syslogngconf

flycheck module for syslog-ng configuration files

syslogngconf-mode is hard dependency. For details, please check syslogngconf-mode.

Installation

Using package manager

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)

Using git clone

(use-package flycheck-syslogngconf
  :load-path  "<path to the git clone>")

Enable flycheck mode

To enable flycheck globally:

(global-flycheck-mode)

To enable manually

M-x flycheck-mode

Overriding the executable

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" ))))