senny / cabbage

get the maximum out of emacs
http://senny.github.com/cabbage/
156 stars 21 forks source link

spelling-bundle #80

Closed senny closed 12 years ago

senny commented 12 years ago

It would be nice to have a bundle for spelling-correction.

I think it should configure Emacs to use 'aspell' and setup necessary bindings to work with the build in ispell functions.

jone commented 12 years ago

+1 The built in ispell is bound to M-$ - do you intend to change that? I'd like to have a fallback to ispell, since ispell is the default emacs spell checker. It'd be rather simple, something like:

(if (executable-find "aspell")
  (setq-default ispell-program-name "aspell"))
senny commented 12 years ago

I wanted to change it because aspell is much more advanced than ispell. On the Website it says:

GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell

Also, you can simple install aspell with homebrew on OS-X. Ispell does not seem to be available trough homebrew

jone commented 12 years ago

I agree, but I think if a user has not installed aspell, we should not reconfigure emacs spell checking, since it would not work anyway.. This way we suggest aspell, it will automatically work when the user has it installed but it will fall back if he does not have aspell but ispell executable.

jone commented 12 years ago

@senny: I've added a spelling bundle. It just configures aspell, if the aspell executable can be found. By default you can press M-$ in emacs for spell checking.

Are there configurations / helpers we should add to the bundle? Should we change the binding (I think the default is quite reasonable). Maybe we should do something about switching dictionaries? For now you have to M-x ispell-change-dictionary. When switching often between two languages a kind of a toggle would be fancy :-).

Any thoughts? Otherwise you can close the issue..

senny commented 12 years ago
ispell-init-process: Error: The file "/usr/local/Cellar/aspell/0.60.6.1/lib/aspell-0.60/deutsch" can not be opened for reading.