From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: set dictionary for a file
Date: Wed, 12 Oct 2005 12:38:08 -0600 [thread overview]
Message-ID: <dijl6l$gap$1@sea.gmane.org> (raw)
In-Reply-To: <slrndkqhus.2qo.fab@node1.ddorf.de>
Fabian Braennstroem wrote:
> I would like to set/change dictionary for certain files,
> which I would declare in .emacs. I tried the
> ispell-multi.el, but it somehow didn't work for me. In my
> Gnus I had
>
> (add-hook 'gnus-select-group-hook
> (lambda ()
> (cond
> ((string-match
> "^de\\." (gnus-group-real-name gnus-newsgroup-name))
> (ispell-change-dictionary "deutsch8"))
>
> which worked a while ago.
Here's what ispell.el itself says:
;; Buffer-Local features:
;; There are a number of buffer-local features that can be used to customize
;; ispell for the current buffer. This includes language dictionaries,
;; personal dictionaries, parsing, and local word spellings. Each of these
;; local customizations are done either through local variables, or by
;; including the keyword and argument(s) at the end of the buffer (usually
;; prefixed by the comment characters). See the end of this file for
;; examples. The local keywords and variables are:
;; ispell-dictionary-keyword language-dictionary
;; uses local variable ispell-local-dictionary
;; ispell-pdict-keyword personal-dictionary
;; uses local variable ispell-local-pdict
;; ispell-parsing-keyword mode-arg extended-char-arg
;; ispell-words-keyword any number of local word spellings
And:
,----[ C-h v ispell-local-dictionary RET ]
| ispell-local-dictionary's value is nil
|
| Documentation:
| If non-nil, the dictionary to be used for Ispell commands.
| The value must be a string dictionary name in `ispell-dictionary-alist'.
| This variable becomes buffer-local when set in any fashion.
|
| Setting `ispell-local-dictionary' to a value has the same effect as
| calling M-x ispell-change-dictionary with that value. This variable
| is automatically set when defined in the file with either
| `ispell-dictionary-keyword' or the Local Variable syntax.
|
| To create a non-standard default dictionary (not from
`ispell-dictionary-alist')
| call function `set-default' with the new dictionary name.
|
| You can customize this variable.
|
| Defined in `ispell'.
`----
So try (setq ispell-local-dictionary "deutsch8") in your hook.
> Does something similar (file-load-hook?) exist for ordinary files?
,----[ C-h v find-file-hooks RET ]
| find-file-hooks's value is
| (vc-find-file-hook)
|
|
| Documentation:
| List of functions to be called after a buffer is loaded from a file.
| The buffer's local variables (if any) will have been processed before the
| functions are called.
|
| Defined in `files'.
`----
--
Kevin Rodgers
next prev parent reply other threads:[~2005-10-12 18:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-12 17:28 set dictionary for a file Fabian Braennstroem
2005-10-12 18:38 ` Kevin Rodgers [this message]
[not found] ` <mailman.11056.1129142547.20277.help-gnu-emacs@gnu.org>
2005-10-13 4:40 ` Fabian Braennstroem
2005-10-13 16:58 ` Kevin Rodgers
[not found] ` <mailman.11235.1129223467.20277.help-gnu-emacs@gnu.org>
2005-10-13 19:29 ` Fabian Braennstroem
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='dijl6l$gap$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.