all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Flyspell loading first time buries buffer and inhibits mode hooks  (Win32)
@ 2008-05-19 19:25 petermonsson
  2008-05-20 10:53 ` Tony Mc
  0 siblings, 1 reply; 5+ messages in thread
From: petermonsson @ 2008-05-19 19:25 UTC (permalink / raw)
  To: help-gnu-emacs

Hi All,

I'm having a problem with flyspell on my Emacs 22.1.1 on Win32. When I
find the first file flyspell will load and bury the file I'm opening
in the buffer list. modes will not start such as ruby-mode or cc-mode.
This only happens on the first file when flyspell thinks it should
load which is also when I start Emacs with a file to open from
Explorer.

It literally pisses me off to the point where I'm thinking of ditching
flyspell. Do you know any solution to my problem?

I have extracted the relevant parts of my .emacs file (and removed the
ranting)

;; Spelling
(setq ispell-program-name "aspell")

(add-hook 'text-mode-hook (lambda () (flyspell-mode 1)))
(global-set-key "\C-csd" (lambda() (interactive) (ispell-change-
dictionary "dansk" nil)))
(global-set-key "\C-cse" (lambda() (interactive) (ispell-change-
dictionary "english" nil)))

(if (fboundp 'longlines-mode)
    (add-hook 'text-mode-hook '(lambda () (longlines-mode))) ;;better
than auto-fill
  (add-hook 'text-mode-hook
            '(lambda nil
               (setq fill-column 79)
               (auto-fill-mode 1))))

;; Ruby
(autoload 'ruby-mode "ruby-mode" "Major mode for editing ruby
scripts." t)
(add-to-list 'auto-mode-alist '("\\.rb$" . ruby-mode))
(add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode)) ;; For irb
;; irb in Emacs
(autoload 'run-ruby "inf-ruby" "Run an inferior Ruby process")
(autoload 'inf-ruby-keys "inf-ruby"
  "Set local key defs for inf-ruby in ruby-mode")

(add-hook 'ruby-mode-hook
          '(lambda ()
             (font-lock-mode t)
             (inf-ruby-keys)))

Thank you for your help in advance.
Peter Monsson


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-05-20 18:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-19 19:25 Flyspell loading first time buries buffer and inhibits mode hooks (Win32) petermonsson
2008-05-20 10:53 ` Tony Mc
2008-05-20 17:00   ` petermonsson
2008-05-20 17:52     ` Flyspell loading first time buries buffer and inhibits modehooks (Win32) Drew Adams
2008-05-20 18:46     ` Flyspell loading first time buries buffer and inhibits mode hooks (Win32) Eli Zaretskii

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.