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