diff --git a/ChangeLog b/ChangeLog index 55b17819278470b871ac84695a280170072fb926..c4023bafb1e059991482ad234fdf766b0068d82d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ formatter allows no interaction it needs no associated menu. * src/text.c (do_formatter): Remove unneeded statement -- nothing has changed the value of 'currmenu'. + * src/global.c (strtomenu), doc/man/nanorc.5: Allow rebinding the + linter when nano was configured with --disable-speller. 2015-03-23 Benno Schulenberg <bensberg@justemail.net> * src/text.c (do_alt_speller): Avoid the spell checker reporting diff --git a/doc/man/nanorc.5 b/doc/man/nanorc.5 index d0b6f6b50166f3d843d13a902dbcfe0c84e2cd17..a02415f07edf51ea72b0fd0896020a56672011c8 100644 --- a/doc/man/nanorc.5 +++ b/doc/man/nanorc.5 @@ -418,6 +418,9 @@ Counts the number of words, lines and characters in the current buffer. Invokes a spell-checking program (or a linting program, if the current syntax highlighting defines one). .TP +.B linter +A synonym of \fBspeller\fR (for when the speller has not been configured). +.TP .B justify Justifies the current paragraph. .TP diff --git a/src/global.c b/src/global.c index 218ff2938a341fb055d9ee1dd76b3506888c55c8..df5a99faa6b4d604346de8472017d0290a926794 100644 --- a/src/global.c +++ b/src/global.c @@ -1311,6 +1311,8 @@ sc *strtosc(char *input) !strcasecmp(input, "speller")) s->scfunc = do_spell; #endif + else if (!strcasecmp(input, "linter")) + s->scfunc = do_linter; else if (!strcasecmp(input, "curpos") || !strcasecmp(input, "cursorpos")) s->scfunc = do_cursorpos_void;