diff --git a/ChangeLog b/ChangeLog index adbdd2f97d5f9c5e3ed46d88c4fed40a38640121..3b0da21f96c3db1c32dffaf03d9b6a7ac3c884a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ make use of it to remember the location of the Uncut item. * src/global.c, src/files.c (make_new_buffer, close_buffer): Make help lines show "Close" again when more than one buffer is open. + * src/global.c (strtosc), doc/man/nanorc.5: Allow the do_spell + (and thus do_lint) function to be bound to other key combos. 2014-04-24 Benno Schulenberg <bensberg@justemail.net> * doc/faq.html: Update a few URLs, delete some obsolete ones, update diff --git a/doc/man/nanorc.5 b/doc/man/nanorc.5 index 44839262c47d3ebb510d4ffa7d286baa3772b3d4..304cb1e87e298ebf2dd43b25d3377ae8e819523e 100644 --- a/doc/man/nanorc.5 +++ b/doc/man/nanorc.5 @@ -368,6 +368,10 @@ Copy the currently stored text into the current buffer position. .B curpos Show the current line, column, word positions in the file. .TP +.B speller +Invoke a spell checking program (or a linting program, if the current +syntax highlighting defines one). +.TP .B firstline Move to the first line of the file. .TP diff --git a/src/global.c b/src/global.c index 2f66bb2f4088a2a9f50622e528d2f26c34183904..36f0936d4ebcf8d505431926dce7cf0bf8d10c42 100644 --- a/src/global.c +++ b/src/global.c @@ -1281,6 +1281,9 @@ sc *strtosc(char *input) s->scfunc = do_cut_text_void; else if (!strcasecmp(input, "uncut")) s->scfunc = do_uncut_text; + else if (!strcasecmp(input, "tospell") || + !strcasecmp(input, "speller")) + s->scfunc = do_spell; else if (!strcasecmp(input, "curpos") || !strcasecmp(input, "cursorpos")) s->scfunc = do_cursorpos_void;