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

Re: emacs ignores certain commands in .emacs



I won't address all your problems...

> In my .emacs file I have inter alia the following:
> 
> (setq text-mode-hook 'turn-on-auto-fill)

You want 

 (add-hook 'text-mode-hook 'turn-on-auto-fill)

> (setq reftex-plug-into-AUCTeX t)
> (setq reftex-enable-partial-scans t)
> (setq reftex-save-parse-info t)
> (setq reftex-use-multiple-selection-buffers t)
> (add-hook 'LaTeX-mode-hook 'turn-on-reftex)   ; with AUCTeX LaTeX mode
> (add-hook 'latex-mode-hook 'turn-on-reftex)   ; with Emacs latex mode
> (line-number-mode 1)
> (gnuserv-start)
> (add-hook 'python-mode-hook 'turn-on-font-lock)
> (setq font-lock-keywords python-font-lock-keywords)
> (font-lock-mode 1))
                    ^
There's an unbalanced parenthesis here.
Plus, this would only turn on font-lock on the initial buffer.  In
Emacs-20, you want this instead:

 (global-font-lock-mode t)

> (setq abbrev-mode 1)
> (setq text-mode-hook 'iso-accents-mode)

You want 

 (add-hook 'text-mode-hook 'iso-accents-mode)
 
-- 
Peter Galbraith, research scientist          <GalbraithP@dfo-mpo.gc.ca>
Maurice Lamontagne Institute, Department of Fisheries and Oceans Canada
P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada. 418-775-0852 FAX: 775-0546
    6623'rd GNU/Linux user at the Counter - http://counter.li.org/ 



Reply to: