Permalink
Browse files

[doc] book: Adding a tip (on-the-fly spell-checking) to the emacs par…

…agraph in the 'Install' section
  • Loading branch information...
1 parent 9cc6f71 commit 4257be08dd8c4646b15e18c005e8a85c732886ab Guillem Rieu committed Jun 22, 2011
Showing with 20 additions and 0 deletions.
  1. +20 −0 doc/book/install.adoc
View
@@ -145,6 +145,26 @@ On Linux, add the following lines to your configuration file:
(add-to-list 'auto-mode-alist '("\\.opa$" . opa-mode))
------
+[TIP]
+==============
+You may want to activate spell-checking on OPA comments and strings. To do so,
+type the command +M-x flyspell-prog-mode+ within emacs.
+
+And if you want this functionality activated each time you open an OPA file,
+you just need to add the following lines to your configuration file:
+
+------
+(defun enable_flyspell ()
+ (ispell-change-dictionary "american")
+ (flyspell-prog-mode)
+)
+
+;; Enable spell-checking on OPA comments and strings
+(add-hook 'opa-mode-hook 'enable_flyspell)
+------
+
+==============
+
Vim
^^^

0 comments on commit 4257be0

Please sign in to comment.