Flycheck is an emacs extension for checking syntax on the fly. This package adds Flycheck support for Ciao mode with various checkers for different purposes:
Before installing this package, emacs 24 is needed for using Flycheck. If you do not have installed it yet, this package flycheck-ciao will do it automatically from MELPA repository, but as it is not available in emacs by default, you should add this code to your emacs init file.
(require 'package) (add-to-list 'package-archives '("MELPA Stable" . "https://stable.melpa.org/packages/") t) (package-initialize)
There are two options for the setup:
(eval-after-load 'flycheck '(add-hook 'flycheck-mode-hook 'flycheck-ciao-setup))
(use-package flycheck-ciao :after flycheck :hook (flycheck-mode . flycheck-ciao-setup) )
All options when using Flycheck are available on the top bar menu Tools -> Syntax Checking.
(add-hook 'after-init-hook 'global-flycheck-mode)
In the official Flycheck manual some extensions are recommended for better user experience.