1 ;; Disable auto-save for all file buffers
2 (setq auto-save-default nil)
4 (global-set-key "\C-m" 'newline-and-indent)
5 (global-font-lock-mode t)
7 ;; These are otherwise bound to C-Up and C-Down. To heck with that
8 ;; nonsense, M-n and M-p are unused and analogous to C-f, C-b and M-f,
10 (global-set-key "\M-p" 'backward-paragraph)
11 (global-set-key "\M-n" 'forward-paragraph)
13 ;; Gentoo *or somebody* made the default too small.
14 ;; Make it too big to overcompensate.
15 (set-default-font "DejaVu Sans Mono-14")
17 ;; Set the frame title to the name of the buffer, if supported.
18 (setq frame-title-format "%b")
20 ;; Currently needed to make Emacs 23 behave sanely.
21 '(diff-jump-to-old-file t)
23 ;; Disable the menu/tool bars when we're using X.
28 ;; And put the damned scroll bar on the correct side.
30 (set-scroll-bar-mode 'right))
32 ;; The most important statement in this file.
33 ;; Do not display a splash screen on startup.
34 (setq inhibit-splash-screen t)
37 (setq line-number-mode t)
38 (setq column-number-mode t)
42 ;; Don't force a newline at the end of every file.
43 ;; Doing so can screw up HTML, where a newline is more
44 ;; or less equivalent to a space.
45 (setq require-final-newline nil)
49 ;; (set-language-environment "UTF-8")
50 (prefer-coding-system 'utf-8-unix)
51 (set-terminal-coding-system 'utf-8-unix)
52 (set-keyboard-coding-system 'utf-8-unix)
54 (setq inhibit-iso-escape-detection t)
56 ;; Don't leave backups everywhere.
57 (setq backup-inhibited t)
59 ;; Don't let the file's contents modify my editor, because that needs
60 ;; to be said? More importantly, don't interrupt me to ask me if I
61 ;; want to process the variables that emacs KNOWS are unsafe.
62 (setq enable-local-variables nil)
64 ;; Add the directory containing .emacs to the load-path.
65 (add-to-list 'load-path (file-name-directory (file-truename user-init-file)))
67 ;; Need this for ignore-errors, and some modes.
70 (load-library "auto-modes")
71 (load-library "mode-hooks")
74 ;; Open private IRC messages in a new buffer.
75 (setq erc-auto-query 'buffer)
77 ;; Never ask me anything, emacs.
78 (setq save-abbrevs nil)
80 (load-library "diff-buffer-against-file")
81 (global-set-key "\C-cd" 'diff-buffer-against-file)
83 (load-library "fix-nonstandard-chars")
84 (load-library "latex-query-replace-regexp-math")
87 ;; Enable dired-find-alternate-file without having to stop
88 ;; and explain myself to Emacs.
89 (put 'dired-find-alternate-file 'disabled nil)
92 ;; Enable the downcase-region function.
93 (put 'downcase-region 'disabled nil)
95 ;; Show trailing whitespace, without having to drop into
98 ;; custom-set-variables was added by Custom.
99 ;; If you edit it by hand, you could mess it up, so be careful.
100 ;; Your init file should contain only one such instance.
101 ;; If there is more than one, they won't work right.
102 '(auth-source-save-behavior nil)
103 '(show-trailing-whitespace t))
105 ;; custom-set-faces was added by Custom.
106 ;; If you edit it by hand, you could mess it up, so be careful.
107 ;; Your init file should contain only one such instance.
108 ;; If there is more than one, they won't work right.