1 ;; Red Hat Linux default .emacs initialization file
3 ;; Are we running XEmacs or Emacs?
4 (defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))
6 ;; Set up the keyboard so the delete key on both the regular keyboard
7 ;; and the keypad delete the character under the cursor and to the right
8 ;; under X, instead of the default, backspace behavior.
9 (global-set-key [delete] 'delete-char)
10 (global-set-key [kp-delete] 'delete-char)
12 ;; Turn on font-lock mode for Emacs
13 (cond ((not running-xemacs)
14 (global-font-lock-mode t)
17 ;; Always end a file with a newline
18 (setq require-final-newline t)
20 ;; Stop at the end of the file, not just add lines
21 (setq next-line-add-newlines nil)
24 (autoload 'nemerle-mode "nemerle.el"
25 "Major mode for editing nemerle programs." t)
26 (setq auto-mode-alist (cons '("\\.n$" . nemerle-mode) auto-mode-alist))
28 ;; If you'd like to have every line indented right after new line put
29 ;; these lines into your ~/.emacs files.
31 (defun my-nemerle-mode-hook ()
32 (setq nemerle-basic-offset 2)
33 (define-key nemerle-mode-map "\C-m" 'newline-and-indent))
34 (add-hook 'nemerle-mode-hook 'my-nemerle-mode-hook)
36 ;; Tuareg Mode (ocaml)
37 (setq auto-mode-alist (cons '("\\.ml\\w?" . tuareg-mode) auto-mode-alist))
38 (autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t)