summaryrefslogtreecommitdiffstats
path: root/README.emacs
diff options
context:
space:
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