File: muttrc-mode.texi

package info (click to toggle)
muttrc-mode-el 1.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 140 kB
  • sloc: lisp: 1,418; makefile: 9
file content (75 lines) | stat: -rw-r--r-- 2,011 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
@c -*- mode: texinfo -*-
\input texinfo

@c %**start of header
@setfilename info/muttrc-mode
@settitle muttrc-mode
@documentencoding ISO-8859-1
@c %**end of header

@c This file was trivially adapted from emacs-goodies-el.texi
@c EDITION 30.2
@c UPDATED 25 Nov 2009
@c Copyright: 2000-2003 Roland Mas <lolando@debian.org>,
@c  2005-2014 Peter S Galbraith <psg@debian.org>
@c  2014 Julian Gilbey <jdg@debian.org>
@c License: GPL-2+

@dircategory Emacs
@direntry
* mutt-alias: major mode for editing muttrc
@end direntry

@node Top
@noindent Author: Laurent Pelecq <laurent.pelecq@@soleil.org>

This mode primarily provides syntax highlighting for muttrc and
/etc/aliases. Basic fontification (via font-lock) appears on strings,
comments, command names, and variables. Additional fontification for
commands arguments can be enabled through the customization buffer.

To customize it, execute @command{M-x customize-group RET muttrc RET}

By default, help for a command/variable is automatically displayed
when executing a command that would modify them. This feature can be
disabled if it causes problems.

The main commands are:

@table @samp
@item C-x c
muttrc-insert-command
@item C-x s
muttrc-set-variable
@item C-x S
muttrc-unset-variable
@end table

Type @key{C-h m} for all key bindings.

@noindent Installation:

Add this lines to your Emacs config:
  (autoload 'muttrc-mode "muttrc-mode.el"
  	"Major mode to edit muttrc files" t)
  (setq auto-mode-alist
  	    (append '(("muttrc\\'" . muttrc-mode))
  		    auto-mode-alist))

Install muttrc-mode.el to a directory somewhere in the load-path.  To
use this mode for other files, like the mail aliases file, add local
file variables similar to following lines to these files:

  ### Local Variables: ***
  ### mode: muttrc ***
  ### End: ***

Alternatively, write an auto-mode-alist rule to activate muttrc-mode
for FILE_PATTERN (see above example).

@noindent BUGS:

Multi-line commands are not properly handled and can lead to
unexpected results.

@bye