@@ -52,6 +52,8 @@ interpreter (e.g. GHCi).
52
52
* Introduction :: An introduction to Haskell Mode
53
53
* Installation :: How to get started
54
54
* Editing Haskell Code :: How to edit code
55
+ * Font Lock Support :: Haskell Mode has colors
56
+ * Completion support :: Autocomplete
55
57
* Unicode support :: How to use Unicode
56
58
* Indentation :: Notes about indentation
57
59
* External indentation :: Other ways to indent code
@@ -66,7 +68,7 @@ interpreter (e.g. GHCi).
66
68
* Browsing Haddocks :: Using @code {w3m } to browse documentation
67
69
* Spell checking strings and comments :: Using @code {flyspell-prog-mode }
68
70
* Aligning code :: Aligning code using @code {align-regexp }
69
- * Rectangular commands ::
71
+ * Rectangular commands :: Manage indentation manually
70
72
* Getting Help and Reporting Bugs :: How to improve Haskell Mode
71
73
* Concept index :: Index of Haskell Mode concepts
72
74
* Function index :: Index of commands
@@ -250,24 +252,6 @@ literate Haskell files. The currently detected literate Haskell variant
250
252
is shown in the mode line (@pxref {Mode Line ,,,emacs }) as either
251
253
@samp {LitHaskell/bird } or @samp {LitHaskell/tex }.
252
254
253
- @section Font Lock Support
254
-
255
- @code {haskell-mode } supports @dfn {syntax highlighting } via Emacs' Font
256
- Lock minor mode which should be enabled by default in current
257
- Emacsen. @xref {Font Lock ,,,emacs }, for more information on how to
258
- control @code {font-lock-mode }.
259
-
260
- @ifhtml
261
- @image {anim/font-lock }
262
- @end ifhtml
263
-
264
- Syntax highlighting facilities parse strings and string escape sequences
265
- and are able to highlight unrecognized constructs.
266
-
267
- @ifhtml
268
- @image {anim/string-escape-highlight }
269
- @end ifhtml
270
-
271
255
272
256
@section Managing imports
273
257
@@ -332,7 +316,52 @@ automatically, this can be done by customizing
332
316
@code {tags-revert-without-query } variable (either globally or for
333
317
Haskell buffers only).
334
318
335
- @section Completion support
319
+ @section Profiling and Debugging support
320
+
321
+ When profiling code with GHC, it is often useful to add
322
+ @uref {https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/profiling.html#cost-centres ,
323
+ cost centres } by hand. These allow finer-grained information about
324
+ program behavior. @code {haskell-mode } provides the function
325
+ @code {haskell-mode-toggle-scc-at-point } to make this more convenient.
326
+ It will remove an SCC annotation at point if one is present, or add
327
+ one if point is over whitespace. By default it is bound to @kbd {C-c C-s }.
328
+
329
+ @node Font Lock Support
330
+ @chapter Font Lock Support
331
+
332
+ @code {haskell-mode } supports @dfn {syntax highlighting } via Emacs' Font
333
+ Lock minor mode which should be enabled by default in current
334
+ Emacsen. @xref {Font Lock ,,,emacs }, for more information on how to
335
+ control @code {font-lock-mode }.
336
+
337
+ @ifhtml
338
+ @image {anim/font-lock }
339
+ @end ifhtml
340
+
341
+ Syntax highlighting facilities parse strings and string escape sequences
342
+ and are able to highlight unrecognized constructs.
343
+
344
+ @ifhtml
345
+ @image {anim/string-escape-highlight }
346
+ @end ifhtml
347
+
348
+ Haskell Mode shows keywords, identifiers, operators, constructors and
349
+ types in different colors.
350
+
351
+ @ifhtml
352
+ @image {anim/font-lock-types }
353
+ @end ifhtml
354
+
355
+ There is also support to use mode-specific syntax highlighing for
356
+ quasiquotes. Customize @code {haskell-font-lock-quasi-quote-modes } to
357
+ make sure your quoters are supported.
358
+
359
+ @ifhtml
360
+ @image {anim/font-lock-quasi-quotes }
361
+ @end ifhtml
362
+
363
+ @node Completion support
364
+ @chapter Completion support
336
365
337
366
@code {haskell-mode } can complete symbols, pragma directives, language
338
367
extensions, and language keywords out-of-box. @code {haskell-mode }
@@ -376,16 +405,6 @@ example:
376
405
company-backends))))
377
406
@end lisp
378
407
379
- @section Profiling and Debugging support
380
-
381
- When profiling code with GHC, it is often useful to add
382
- @uref {https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/profiling.html#cost-centres ,
383
- cost centres } by hand. These allow finer-grained information about
384
- program behavior. @code {haskell-mode } provides the function
385
- @code {haskell-mode-toggle-scc-at-point } to make this more convenient.
386
- It will remove an SCC annotation at point if one is present, or add
387
- one if point is over whitespace. By default it is bound to @kbd {C-c C-s }.
388
-
389
408
@node Unicode support
390
409
@chapter Unicode support
391
410
0 commit comments