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