Commit 301c4ef6 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Allow do_spell() to be bound to other key combos.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4817 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 11d76449
Showing with 9 additions and 0 deletions
+9 -0
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
make use of it to remember the location of the Uncut item. make use of it to remember the location of the Uncut item.
* src/global.c, src/files.c (make_new_buffer, close_buffer): Make * src/global.c, src/files.c (make_new_buffer, close_buffer): Make
help lines show "Close" again when more than one buffer is open. 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> 2014-04-24 Benno Schulenberg <bensberg@justemail.net>
* doc/faq.html: Update a few URLs, delete some obsolete ones, update * doc/faq.html: Update a few URLs, delete some obsolete ones, update
......
...@@ -368,6 +368,10 @@ Copy the currently stored text into the current buffer position. ...@@ -368,6 +368,10 @@ Copy the currently stored text into the current buffer position.
.B curpos .B curpos
Show the current line, column, word positions in the file. Show the current line, column, word positions in the file.
.TP .TP
.B speller
Invoke a spell checking program (or a linting program, if the current
syntax highlighting defines one).
.TP
.B firstline .B firstline
Move to the first line of the file. Move to the first line of the file.
.TP .TP
......
...@@ -1281,6 +1281,9 @@ sc *strtosc(char *input) ...@@ -1281,6 +1281,9 @@ sc *strtosc(char *input)
s->scfunc = do_cut_text_void; s->scfunc = do_cut_text_void;
else if (!strcasecmp(input, "uncut")) else if (!strcasecmp(input, "uncut"))
s->scfunc = do_uncut_text; s->scfunc = do_uncut_text;
else if (!strcasecmp(input, "tospell") ||
!strcasecmp(input, "speller"))
s->scfunc = do_spell;
else if (!strcasecmp(input, "curpos") || else if (!strcasecmp(input, "curpos") ||
!strcasecmp(input, "cursorpos")) !strcasecmp(input, "cursorpos"))
s->scfunc = do_cursorpos_void; s->scfunc = do_cursorpos_void;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment