Index
Documents
Publications
ETH
Diving
Software
Pictures
Server info
Blog

Search

Matteo Corti — XEmacs configuration

Some useful hints to configure XEmacs.

LaTeX

;; Auc-TeX 
(require 'tex-site) 
(setq-default TeX-master nil) 
(setq TeX-parse-self t) 
(setq TeX-auto-save t)

;; RefTeX 
(autoload 'reftex-mode    "reftex" "RefTeX Minor Mode" t) 
(autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" nil) 
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)   ; with AUCTeX LaTeX mode 
(setq reftex-enable-partial-scans t) 
(setq reftex-save-parse-info t) 
(setq reftex-use-multiple-selection-buffers t) 
(setq reftex-plug-into-AUCTeX t) 
(setq bib-cite-use-reftex-view-crossref t) 

;; bib-cite 
(autoload 'turn-on-bib-cite "bib-cite") 
(add-hook 'LaTeX-mode-hook 'turn-on-bib-cite) 
(setq bib-novice nil)
	    

Spelling

;; Fly-spell
(add-hook 'LaTeX-mode-hook 'flyspell-mode)
(autoload 'flyspell-mode "flyspell" "On-the-fly spelling checker." t)
(setq ispell-parser 'tex)

(setq ispell-prefer-aspell t)
;;(autoload 'ispell "ispell" "Check the spelling." t)
;;(add-hook 'LaTeX-mode-hook '(lambda() (require 'flyspell-babel)))
;;(setq flyspell-babel-verbose t)
	    

General

;; Always end a file with a newline
(setq require-final-newline t)

;;  Set the default value of the local variable so
;;  spaces are used instead of tabs.
(setq-default indent-tabs-mode nil)

;; Set line width to 78 columns... 
(setq fill-column 78) 
(setq auto-fill-mode t) 

;; Highlight expressions between brackets
(paren-set-mode 'paren) 
	    

Perl

;; disable the underlining of trailing spaces 
(setq cperl-invalid-face nil)

;; Use cperl mode instead of the default perl mode 
(defalias 'perl-mode 'cperl-mode) 
 
;; turn autoindenting on 
(global-set-key "\r" 'newline-and-indent) 
 
;; Use 4 space indents via cperl mode 
(custom-set-variables 
 '(cperl-close-paren-offset -4) 
 '(cperl-continued-statement-offset 4) 
 '(cperl-indent-level 4) 
 '(cperl-indent-parens-as-block t) 
 '(cperl-tab-always-indent t)) 
	    

Acknowledgments

I would like to thank Michael Gatto for his valuable contributions.


Valid HTML 4.01! Valid CSS! www.cacert.org Bone Marrow Donors Worldwide