]> gitweb.michael.orlitzky.com - emacs.d.git/blob - .emacs
537001a6d3216706687d68b9d40fd85864051cbe
[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 (defun load-erc()
66 (interactive)
67 (ignore-errors
68 (load-library "erc")
69 )
70 )
71
72 (global-set-key "\C-ce" 'load-erc)
73
74
75 ;; Never ask me anything, emacs.
76 (setq save-abbrevs nil)
77
78
79 (load-library "diff-buffer-against-file")
80 (global-set-key "\C-cd" 'diff-buffer-against-file)
81
82 (load-library "fix-nonstandard-chars")
83
84
85 ;; These next functions override the defaults provided by emacs. They
86 ;; prevent warning messages related to file modification times,
87 ;; particularly on weird filesystems.
88
89 ;;(defun ask-user-about-supersession-threat (fn)
90 ;; )
91
92 ;;(defun verify-visited-file-modtime (bf)
93 ;; t
94 ;; )