all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: turn on flyspell mode permanently in .emacs
Date: Tue, 22 Aug 2006 09:07:19 -0600	[thread overview]
Message-ID: <ecf6gg$4rg$1@sea.gmane.org> (raw)
In-Reply-To: <1156206235.108245.155630@i3g2000cwc.googlegroups.com>

kevmitch@gmail.com wrote:
> So apparently, I'm doing something extremely stupid.
> Flyspell works great if I type "M-x flyspell-mode RET", but that's not
> good enough. I want it to be on all the time in every major mode
> automatically unless I explicitly disable it. So I tried just about
> every combination of all the relevant lines in my .emacs file to no
> avail. My emacs starts up fine, but no flyspell-mode with out having to
> manually issue the command. Can any kind soul out there please direct
> me in what it is I'm doing wrong. Below are my .emacs and site-start.el
> files.
> Thanks,
> Kevin
> 
> ###########################################################
> #  ~/.emacs
> ###########################################################
> (custom-set-variables
>   ;; custom-set-variables was added by Custom -- don't edit or
> cut/paste it!
>   ;; Your init file should contain only one such instance.
>  '(column-number-mode t)
>  '(matlab-auto-fill nil)
>  '(matlab-comment-region-s "%"))
> (custom-set-faces
>   ;; custom-set-faces was added by Custom -- don't edit or cut/paste
> it!
>   ;; Your init file should contain only one such instance.
>  )
> 
> (add-to-list 'auto-mode-alist '("\\.m$" . matlab-mode))
> (autoload 'flyspell-mode "flyspell" "On-the-fly spelling checking" t)
> (autoload 'global-flyspell-mode "flyspell" "On-the-fly spelling" t)

flyspell.el does not define a global-flyspell-mode command.

> (flyspell-mode 1)

That turns on flyspell in the current buffer, which is *scratch*
when ~/.emacs is loaded.

This is kind of off the wall, but you could try something like this:

(add-hook 'change-major-mode-hook
	  (lambda ()
	    (flyspell-mode 1)
	    (put 'flyspell-mode 'permanent-local t)))

-- 
Kevin

  reply	other threads:[~2006-08-22 15:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-22  0:23 turn on flyspell mode permanently in .emacs kevmitch
2006-08-22 15:07 ` Kevin Rodgers [this message]
2006-08-22 15:24 ` Sebastian P. Luque
     [not found] ` <mailman.5446.1156260343.9609.help-gnu-emacs@gnu.org>
2006-08-22 20:12   ` kevmitch
2006-08-22 21:11     ` Kevin Rodgers
2006-08-22 22:13       ` Noah Slater
2006-08-23 14:24         ` Kevin Rodgers
     [not found]         ` <mailman.5502.1156343431.9609.help-gnu-emacs@gnu.org>
2006-08-23 16:34           ` kevmitch
     [not found]     ` <mailman.5465.1156281191.9609.help-gnu-emacs@gnu.org>
2006-08-22 22:46       ` kevmitch
2006-08-23  2:32         ` Sebastian P. Luque
2006-08-23 14:36         ` Kevin Rodgers
2006-08-23 14:53           ` Noah Slater
2006-08-23 21:27             ` Kevin Rodgers
2006-08-23 12:48 ` Johan Bockgård

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='ecf6gg$4rg$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.