Change scope of +spell/add-word with universal arg
C-u +spell/add-word -> add word for current buffer C-u C-u +spell/add-word -> add word for session buffer
This commit is contained in:
parent
3963b83e2a
commit
b0cd0e5efe
1 changed files with 5 additions and 1 deletions
|
@ -35,7 +35,11 @@ SCOPE can be `buffer' or `session' to exclude words only from the current buffer
|
|||
or session. Otherwise, the addition is permanent."
|
||||
(interactive
|
||||
(list (progn (require 'flyspell)
|
||||
(flyspell-get-word))))
|
||||
(flyspell-get-word))
|
||||
(cond ((equal current-prefix-arg '(16))
|
||||
'session)
|
||||
((equal current-prefix-arg '(4))
|
||||
'buffer))))
|
||||
(require 'flyspell)
|
||||
(cond
|
||||
((null scope)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue