help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

turn on flyspell mode permanently in .emacs


From: kevmitch
Subject: turn on flyspell mode permanently in .emacs
Date: 21 Aug 2006 17:23:55 -0700
User-agent: G2/0.2

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-mode 1)

###########################################################
#  /etc/emacs/site-start.el
###########################################################

;; Emacsen independent startup file.  All of the various installed
;; flavors of emacs (emacs 19, emacs 20, xemacs) will load this file
;; at startup.  Make sure any code you put here is emacs flavor
;; independent.

;; Package maintainers: do not have Debian packages edit this file.
;; See the policy manual for the proper way to handle Emacs package
;; initialization code.

;; turn on colorization.
(require 'font-lock)
(setq font-lock-mode-maximum-decoration t)
(if (fboundp 'global-font-lock-mode) (global-font-lock-mode t))

;; Turn on selection and change the default color
(setq transient-mark-mode 't highlight-nonselected-windows 't)

;; Show parenthesis mode
(show-paren-mode t)

;; turn on auto (de)compression
(if (fboundp 'auto-compression-mode) (auto-compression-mode t))

;; keyboard short-cut for goto-line
(global-set-key [(meta g)] `goto-line)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]