summaryrefslogtreecommitdiffstats
path: root/README.emacs
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-08-13 03:01:12 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-08-13 03:01:12 +0000
commit3fc7ffeb3d832c8a84ced4b597535326676d68a3 (patch)
treee9b58f3fe3659f5591b3208e00e412e37f3c6c0d /README.emacs
parentae203b7f2f5ccc9d7fd3711dae54e0177f683e49 (diff)
downloadperl-MDK-Common-3fc7ffeb3d832c8a84ced4b597535326676d68a3.tar
perl-MDK-Common-3fc7ffeb3d832c8a84ced4b597535326676d68a3.tar.gz
perl-MDK-Common-3fc7ffeb3d832c8a84ced4b597535326676d68a3.tar.bz2
perl-MDK-Common-3fc7ffeb3d832c8a84ced4b597535326676d68a3.tar.xz
perl-MDK-Common-3fc7ffeb3d832c8a84ced4b597535326676d68a3.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.emacs21
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