]> gitweb.michael.orlitzky.com - emacs.d.git/blob - .emacs
Removed the load-erc function; ERC is built-in now.
[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 ;; Currently needed to make Emacs 23 behave sanely.
11 '(diff-jump-to-old-file t)
12
13 ;; Disable the menu/tool bars when we're using X.
14 (menu-bar-mode -1)
15 (when window-system
16 (tool-bar-mode -1))
17
18 ;; And put the damned scroll bar on the correct side.
19 (when window-system
20 (set-scroll-bar-mode 'right))
21
22 ;; The most important statement in this file.
23 ;; Do not display a splash screen on startup.
24 (setq inhibit-splash-screen t)
25
26 ;; Mode Line
27 (setq line-number-mode t)
28 (setq column-number-mode t)
29 (display-time)
30
31
32 ;; Don't force a newline at the end of every file.
33 ;; Doing so can screw up HTML, where a newline is more
34 ;; or less equivalent to a space.
35 (setq require-final-newline nil)
36
37
38 ;; Unicode
39 ;; (set-language-environment "UTF-8")
40 (prefer-coding-system 'utf-8-unix)
41 (set-terminal-coding-system 'utf-8-unix)
42 (set-keyboard-coding-system 'utf-8-unix)
43
44 (setq inhibit-iso-escape-detection t)
45
46 ;; Don't leave backups everywhere.
47 (setq backup-inhibited t)
48
49 ;; Add this to load-path manually, then add the rest in load-paths.el
50 (add-to-list 'load-path "~/.home/emacs/")
51 (load-library "load-paths")
52
53 (if (eq system-type 'cygwin)
54 (load-library "win32"))
55
56
57 ;; Need this for ignore-errors, and some modes.
58 (require 'cl)
59
60 (load-library "auto-modes")
61 (load-library "mode-hooks")
62 (load-library "autoloads")
63
64
65 ;; Open private IRC messages in a new buffer.
66 (setq erc-auto-query 'buffer)
67
68
69 ;; Never ask me anything, emacs.
70 (setq save-abbrevs nil)
71
72
73 (load-library "diff-buffer-against-file")
74 (global-set-key "\C-cd" 'diff-buffer-against-file)
75
76 (load-library "fix-nonstandard-chars")
77
78
79 ;; These next functions override the defaults provided by emacs. They
80 ;; prevent warning messages related to file modification times,
81 ;; particularly on weird filesystems.
82
83 ;;(defun ask-user-about-supersession-threat (fn)
84 ;; )
85
86 ;;(defun verify-visited-file-modtime (bf)
87 ;; t
88 ;; )