mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -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."
|
or session. Otherwise, the addition is permanent."
|
||||||
(interactive
|
(interactive
|
||||||
(list (progn (require 'flyspell)
|
(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)
|
(require 'flyspell)
|
||||||
(cond
|
(cond
|
||||||
((null scope)
|
((null scope)
|
||||||
|
Reference in New Issue
Block a user