check_ycp
and Emacs go together well:
Invoke the Emacs compile command:
M-x compile
Edit the compile command ("make -k
" by default) in the
minibuffer; change it to the check_ycp
command you wish to invoke (you only need to do this once for each Emacs session):
check_ycp *.ycp
Use the next-error
function to go to the next error
check_ycp
has reported. The corresponding YCP file will automatically be
loaded into Emacs if needed, and Emacs will jump to the corresponding line
within that file.
If you haven't done so already, you might want to bind the compile
and
next-error
functions to keys in your ~/.emacs
file, e.g.
(global-set-key "f42" 'compile) (global-set-key "f43" 'next-error)
The real challenge here is to find a key that is not already in use for some other important function.
If you are a real hardcore YCP hacker, you can even go so far and change the
default compile command to check_ycp
in ~/.emacs
:
(setq compile-command "check_ycp *.ycp")