wiki:CLASSJUSER

Version 12 (modified by admin, 4 years ago) (diff)

--

TODO

http://jasonwryan.com/blog/2012/05/12/mutt/

link-grammar

Requires

  • link-grammar

Setup

First, Install g++(for compiling our plugin), subversion(for retrieving our plugin), link-grammar, and its development headers:

  • apt-get install subversion link-grammar liblink-grammar4-dev

Next, grab the sourcecode.

  • mkdir emacs-grammar
  • cd emacs-grammar
  • svn checkout http://bcui-emacs.googlecode.com/svn/trunk/grammar
  • Edit the Makefile, so that it looks for includes in /usr/include, instead of /usr/local/include.

Build the plugin:

  • make

Place the plugin where emacs will find it:

mkdir -p ~/.emacs.d/site-lisp/grammar
cp grammar ~/.emacs.d/site-lisp/grammar
cp grammar.el ~/.emacs.d/site-lisp/grammar

Now, create an emacs config to autoload all of this stuff:

cat >> ~/.emacs
;; Grammar Checker
(add-to-list 'load-path "~/.emacs.d/site-lisp/grammar")
(add-to-list 'exec-path "~/.emacs.d/site-lisp/grammar")
(autoload 'grammar-mode "grammar" nil t)

(hit control-d to get out of cat.)

Usage

  • M-x grammar-mode

Now, every time you press enter or two spaces, the line you are on will be grammar checked.