On Wed, Oct 19, 2005 at 10:48:16PM +0200, Agustin Martin wrote:
> I hope something like the code below (in debian-ispell.el) should help with
> this (only minimally tested)
> 
> ----------------------------- snip ------------------------------------
> 
> ;;; ----------------------------------------------------------------------
> ;;;  Handle ispell.el load at startup
> ;;; ----------------------------------------------------------------------

...
 
> (defun debian-ispell-load-on-startup ()
>   (if (or (and (or (eq window-system 'x)
>                  (eq window-system 'gtk))
>              debian-ispell-load-on-startup-x)
>         (and (not window-system)
>              debian-ispell-load-on-startup-nox))
>       (progn
>       (setq ispell-menu-xemacs nil)
>       (ispell-change-dictionary nil)))
>   )

...

Just a minor change here,

(defun debian-ispell-load-on-startup ()
  (if (or (and (not window-system)
               debian-ispell-load-on-startup-nox)
          (and window-system
               debian-ispell-load-on-startup-x))
      (progn
        (setq ispell-menu-xemacs nil)
        (ispell-change-dictionary nil)))
  )

emacs is running in a window system unless window-system is nil.

I have tested this setup using after-init-hook and seems to be working
pretty well for both {x}emacs. Committed this first cut to our cvs.

On Thu, Oct 20, 2005 at 09:28:35AM -0400, Peter S Galbraith wrote:

> Let me look at this this evening (or soon anyway).  I think it can be
> done without using after-init-hook.

Thanks Peter, I will wait for your feedback

-- 
Agustin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to