]> git.pld-linux.org Git - packages/emacs.git/blame - emacs-dotemacs
- rebuild with ImageMagick 7.0.4.0
[packages/emacs.git] / emacs-dotemacs
CommitLineData
0800c7da
JR
1;; Red Hat Linux default .emacs initialization file
2
3;; Are we running XEmacs or Emacs?
4(defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))
5
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)
11
12;; Turn on font-lock mode for Emacs
13(cond ((not running-xemacs)
14 (global-font-lock-mode t)
15))
16
17;; Always end a file with a newline
18(setq require-final-newline t)
19
20;; Stop at the end of the file, not just add lines
21(setq next-line-add-newlines nil)
3b38d52c 22
23;; Nemerle
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))
27
28;; If you'd like to have every line indented right after new line put
29;; these lines into your ~/.emacs files.
30
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)
35
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)
This page took 0.0464 seconds and 4 git commands to generate.