diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-08-13 03:01:12 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-08-13 03:01:12 +0000 |
commit | 58e6677933d504c98dcc3ebf10009dc767a73a37 (patch) | |
tree | d4b5a4866e4d8b2874d165f4d7e096328e6326e1 /README.emacs | |
parent | c927e68bfd5e070d666642de786a971b9f0330e9 (diff) | |
download | perl_checker-58e6677933d504c98dcc3ebf10009dc767a73a37.tar perl_checker-58e6677933d504c98dcc3ebf10009dc767a73a37.tar.gz perl_checker-58e6677933d504c98dcc3ebf10009dc767a73a37.tar.bz2 perl_checker-58e6677933d504c98dcc3ebf10009dc767a73a37.tar.xz perl_checker-58e6677933d504c98dcc3ebf10009dc767a73a37.zip |
- use DESTDIR
- add perl_checker-vim
- add Ctrl-return in perl and cperl emacs mode
Diffstat (limited to 'README.emacs')
-rw-r--r-- | README.emacs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/README.emacs b/README.emacs new file mode 100644 index 0000000..d3733a2 --- /dev/null +++ b/README.emacs @@ -0,0 +1,21 @@ +To use under emacs, simply add the following line to your .emacs, +then when you visit a perl file, you can use Ctrl-Return to run perl_checker +on this file + + (global-set-key [(control return)] (lambda () (interactive) (save-some-buffers 1) (compile (concat "perl_checker --restrict-to-files " (buffer-file-name (current-buffer)))))) + +perl_checker --restrict-to-files scanner.pm > errors.err ; vim -c ':copen 4' -c ':so /usr/share/vim/ftplugin/perl_checker.vim' -q + + + +/usr/share/vim/ftplugin/perl_checker.vim + +" Error formats +setlocal efm= + \%EFile\ \"%f\"\\,\ line\ %l\\,\ characters\ %c-%*\\d:, + \%EFile\ \"%f\"\\,\ line\ %l\\,\ character\ %c:%m, + \%+EReference\ to\ unbound\ regexp\ name\ %m, + \%Eocamlyacc:\ e\ -\ line\ %l\ of\ \"%f\"\\,\ %m, + \%Wocamlyacc:\ w\ -\ %m, + \%-Zmake%.%#, + \%C%m |