]> gitweb.michael.orlitzky.com - emacs.d.git/blob - .emacs
Enable Zenburn automatically.
[emacs.d.git] / .emacs
1 (load-library "zenburn")
2 (zenburn)
3
4 ;; Disable auto-save for all file buffers
5 (setq auto-save-default nil)
6
7 (global-set-key "\C-m" 'newline-and-indent)
8 (global-font-lock-mode t)
9
10 ;; Gentoo *or somebody* made the default too small.
11 ;; Make it too big to overcompensate.
12 (set-default-font "DejaVu Sans Mono-14")
13
14 ;; Set the frame title to the name of the buffer, if supported.
15 (setq frame-title-format "%b")
16
17 ;; Currently needed to make Emacs 23 behave sanely.
18 '(diff-jump-to-old-file t)
19
20 ;; Disable the menu/tool bars when we're using X.
21 (menu-bar-mode -1)
22 (when window-system
23 (tool-bar-mode -1))
24
25 ;; And put the damned scroll bar on the correct side.
26 (when window-system
27 (set-scroll-bar-mode 'right))
28
29 ;; The most important statement in this file.
30 ;; Do not display a splash screen on startup.
31 (setq inhibit-splash-screen t)
32
33 ;; Mode Line
34 (setq line-number-mode t)
35 (setq column-number-mode t)
36 (display-time)
37
38
39 ;; Don't force a newline at the end of every file.
40 ;; Doing so can screw up HTML, where a newline is more
41 ;; or less equivalent to a space.
42 (setq require-final-newline nil)
43
44
45 ;; Unicode
46 ;; (set-language-environment "UTF-8")
47 (prefer-coding-system 'utf-8-unix)
48 (set-terminal-coding-system 'utf-8-unix)
49 (set-keyboard-coding-system 'utf-8-unix)
50
51 (setq inhibit-iso-escape-detection t)
52
53 ;; Don't leave backups everywhere.
54 (setq backup-inhibited t)
55
56 ;; Add this to load-path manually, then add the rest in load-paths.el
57 (add-to-list 'load-path "~/.home/emacs/")
58 (load-library "load-paths")
59
60 (if (eq system-type 'cygwin)
61 (load-library "win32"))
62
63
64 ;; Need this for ignore-errors, and some modes.
65 (require 'cl)
66
67 (load-library "auto-modes")
68 (load-library "mode-hooks")
69 (load-library "autoloads")
70
71
72 ;; Open private IRC messages in a new buffer.
73 (setq erc-auto-query 'buffer)
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 ;; Enable dired-find-alternate-file without having to stop
86 ;; and explain myself to Emacs.
87 (put 'dired-find-alternate-file 'disabled nil)
88
89
90 ;; These next functions override the defaults provided by emacs. They
91 ;; prevent warning messages related to file modification times,
92 ;; particularly on weird filesystems.
93
94 ;;(defun ask-user-about-supersession-threat (fn)
95 ;; )
96
97 ;;(defun verify-visited-file-modtime (bf)
98 ;; t
99 ;; )