* flyspell-mode -- external localwords defitions?
@ 2008-10-26 0:15 Joe Casadonte
2008-10-28 4:04 ` Kevin Rodgers
0 siblings, 1 reply; 2+ messages in thread
From: Joe Casadonte @ 2008-10-26 0:15 UTC (permalink / raw
To: help-gnu-emacs
I have a set of files that I would like to have share a common set of
localworlds. It's a pain to keep copying them around from one file to
the next; is there an existing way to have an external localwords
definition?
Thanks!
--
Regards,
joe
Joe Casadonte
jcasadonte@northbound-train.com
------------------------------------------------------------------------------
Llama Fresh Farms => http://www.northbound-train.com
Ramblings of a Gay Man => http://www.northbound-train.com/ramblings
Emacs Stuff => http://www.northbound-train.com/emacs.html
Music CD Trading => http://www.northbound-train.com/cdr.html
------------------------------------------------------------------------------
Live Free, that's the message!
------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: flyspell-mode -- external localwords defitions?
2008-10-26 0:15 flyspell-mode -- external localwords defitions? Joe Casadonte
@ 2008-10-28 4:04 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2008-10-28 4:04 UTC (permalink / raw
To: help-gnu-emacs
Joe Casadonte wrote:
> I have a set of files that I would like to have share a common set of
> localworlds. It's a pain to keep copying them around from one file to
> the next; is there an existing way to have an external localwords
> definition?
Here's what I came up with (untested):
(defvar ispell-external-local-words-file-name nil
"If non-nil, a file containing words to accept in the current buffer.
See `ispell-words-keyword'.")
(defadvice flyspell-process-localwords (around external-local-words
activate)
"Visit `ispell-external-local-words-file-name' to find the words."
(if ispell-external-local-words-file-name
(save-current-buffer
(set-buffer (find-file-noselect ispell-external-local-words-file-name))
ad-do-it)
ad-do-it))
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-28 4:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-26 0:15 flyspell-mode -- external localwords defitions? Joe Casadonte
2008-10-28 4:04 ` Kevin Rodgers
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.