]> gitweb.michael.orlitzky.com - emacs.d.git/blob - .emacs
Initial commit.
[emacs.d.git] / .emacs
1 ;; Disable auto-save for all file buffers
2 (setq auto-save-default nil)
3
4 (global-set-key "\C-m" 'newline-and-indent)
5 (global-font-lock-mode t)
6
7 ;; Set the frame title to the name of the buffer, if supported.
8 (setq frame-title-format "%b")
9
10 ;; Disable the menu bar
11 (menu-bar-mode -1)
12
13 ;; The most important statement in this file.
14 ;; Do not display a splash screen on startup.
15 (setq inhibit-splash-screen t)
16
17 ;; Mode Line
18 (setq line-number-mode t)
19 (setq column-number-mode t)
20 (display-time)
21
22
23 ;; Don't force a newline at the end of every file.
24 ;; Doing so can screw up HTML, where a newline is more
25 ;; or less equivalent to a space.
26 (setq require-final-newline nil)
27
28
29 ;; Unicode
30 ;; (set-language-environment "UTF-8")
31 (prefer-coding-system 'utf-8-unix)
32 (set-terminal-coding-system 'utf-8-unix)
33 (set-keyboard-coding-system 'utf-8-unix)
34
35 (setq inhibit-iso-escape-detection t)
36
37 ;; Don't leave backups everywhere.
38 (setq backup-inhibited t)
39
40 ;; Add this to load-path manually, then add the rest in load-paths.el
41 (add-to-list 'load-path "~/.home/emacs/")
42 (load-library "load-paths")
43
44 (if (eq system-type 'cygwin)
45 (load-library "win32"))
46
47
48 ;; Need this for ignore-errors, and some modes.
49 (require 'cl)
50
51 (load-library "auto-modes")
52 (load-library "mode-hooks")
53 (load-library "autoloads")
54
55
56 (defun load-erc()
57 (interactive)
58 (ignore-errors
59 (load-library "erc")
60 )
61 )
62
63 (global-set-key "\C-ce" 'load-erc)
64
65
66 ;; Never ask me anything, emacs.
67 (setq save-abbrevs nil)
68
69
70 (load-library "diff-buffer-against-file")
71 (global-set-key "\C-cd" 'diff-buffer-against-file)
72
73
74 ;; These next functions override the defaults provided by emacs. They
75 ;; prevent warning messages related to file modification times,
76 ;; particularly on weird filesystems.
77
78 ;;(defun ask-user-about-supersession-threat (fn)
79 ;; )
80
81 ;;(defun verify-visited-file-modtime (bf)
82 ;; t
83 ;; )