Skip to content
This repository
Newer
Older
100644 133 lines (106 sloc) 4.347 kb
5fcb34d0 »
2008-11-18 initial commit
1 ;;; starter-kit-misc.el --- Things that don't fit anywhere else
2 ;;
3 ;; Part of the Emacs Starter Kit
4
5 (when window-system
6 (setq frame-title-format '(buffer-file-name "%f" ("%b")))
7 (tooltip-mode -1)
0e17b376 »
2009-10-13 Only turn on mouse-wheel-mode if a window system is running.
8 (mouse-wheel-mode t)
5fcb34d0 »
2008-11-18 initial commit
9 (blink-cursor-mode -1))
10
9e78e16f »
2009-07-30 Turn off toolbar even when in daemon-mode.
11 (add-hook 'before-make-frame-hook 'turn-off-tool-bar)
12
9a4a7c23 »
2008-12-27 Explicitly prefer utf8; thanks jmhodges.
13 (set-terminal-coding-system 'utf-8)
14 (set-keyboard-coding-system 'utf-8)
15 (prefer-coding-system 'utf-8)
16
5fcb34d0 »
2008-11-18 initial commit
17 (setq visible-bell t
7860d385 » Singletoned
2009-05-27 Set unfinished commands to show as you are typing them
18 echo-keystrokes 0.1
5fcb34d0 »
2008-11-18 initial commit
19 font-lock-maximum-decoration t
20 inhibit-startup-message t
21 transient-mark-mode t
22 color-theme-is-global t
3967f4b7 »
2008-12-08 Remove ELPA'd ruby libs, clean up regen-autoloads.
23 delete-by-moving-to-trash t
24 shift-select-mode nil
5fcb34d0 »
2008-11-18 initial commit
25 truncate-partial-width-windows nil
0386f011 »
2009-09-20 Don't delete by moving to trash.
26 delete-by-moving-to-trash nil
5fcb34d0 »
2008-11-18 initial commit
27 uniquify-buffer-name-style 'forward
8b83d575 »
2008-12-10 Tweak a few variables, change the package list.
28 whitespace-style '(trailing lines space-before-tab
29 indentation space-after-tab)
30 whitespace-line-column 100
5fcb34d0 »
2008-11-18 initial commit
31 ediff-window-setup-function 'ediff-setup-windows-plain
f8212611 »
2008-12-10 Autoload and invoke paredit. Fix ruby-mode RET.
32 oddmuse-directory (concat dotfiles-dir "oddmuse")
0a9f5689 »
2009-01-05 Mostly readme updates; a few other small tweaks.
33 xterm-mouse-mode t
8b83d575 »
2008-12-10 Tweak a few variables, change the package list.
34 save-place-file (concat dotfiles-dir "places"))
5fcb34d0 »
2008-11-18 initial commit
35
34463720 »
2009-01-19 Don't end comments in colons; can be interpreted as local vars.
36 ;; Set this to whatever browser you use
192c1118 »
2009-04-14 Don't set browse-url-browser-function by default.
37 ;; (setq browse-url-browser-function 'browse-url-firefox)
5fcb34d0 »
2008-11-18 initial commit
38 ;; (setq browse-url-browser-function 'browse-default-macosx-browser)
39 ;; (setq browse-url-browser-function 'browse-default-windows-browser)
40 ;; (setq browse-url-browser-function 'browse-default-kde)
41 ;; (setq browse-url-browser-function 'browse-default-epiphany)
42 ;; (setq browse-url-browser-function 'browse-default-w3m)
43 ;; (setq browse-url-browser-function 'browse-url-generic
44 ;; browse-url-generic-program "~/src/conkeror/conkeror")
45
46 ;; Transparently open compressed files
47 (auto-compression-mode t)
48
49 ;; Enable syntax highlighting for older Emacsen that have it off
50 (global-font-lock-mode t)
51
52 ;; Save a list of recent files visited.
53 (recentf-mode 1)
54
55 ;; Highlight matching parentheses when the point is on them.
56 (show-paren-mode 1)
57
58 ;; ido-mode is like magic pixie dust!
59 (when (> emacs-major-version 21)
60 (ido-mode t)
61 (setq ido-enable-prefix nil
62 ido-enable-flex-matching t
63 ido-create-new-buffer 'always
6d71efaf »
2009-09-04 Fix ido-find-file-at-point behaviour for /* */ comments.
64 ido-use-filename-at-point 'guess
5fcb34d0 »
2008-11-18 initial commit
65 ido-max-prospects 10))
66
67 (set-default 'indent-tabs-mode nil)
68 (set-default 'indicate-empty-lines t)
680a6d61 »
2008-12-10 ruby-compilation cleanups.
69 (set-default 'imenu-auto-rescan t)
5fcb34d0 »
2008-11-18 initial commit
70
cd73bcef » Seth Falcon
2009-03-09 Use 'turn-on-* instead of a lambda when adding hooks
71 (add-hook 'text-mode-hook 'turn-on-auto-fill)
72 (add-hook 'text-mode-hook 'turn-on-flyspell)
b95c6322 »
2009-01-21 Doc updates, textile-mode, and a haml fix.
73
b2ffdf12 »
2009-03-11 Make coding-hook a real hook instead of a defun.
74 (defvar coding-hook nil
75 "Hook that gets run on activation of any programming mode.")
76
5fcb34d0 »
2008-11-18 initial commit
77 (defalias 'yes-or-no-p 'y-or-n-p)
78 (random t) ;; Seed the random-number generator
79
80 ;; Hippie expand: at times perhaps too hip
81 (delete 'try-expand-line hippie-expand-try-functions-list)
82 (delete 'try-expand-list hippie-expand-try-functions-list)
83
84 ;; Don't clutter up directories with files~
3967f4b7 »
2008-12-08 Remove ELPA'd ruby libs, clean up regen-autoloads.
85 (setq backup-directory-alist `(("." . ,(expand-file-name
86 (concat dotfiles-dir "backups")))))
5fcb34d0 »
2008-11-18 initial commit
87
88 ;; nxhtml stuff
89 (setq mumamo-chunk-coloring 'submode-colored
90 nxhtml-skip-welcome t
91 indent-region-mode t
92 rng-nxml-auto-validate-flag nil)
93
94 ;; Associate modes with file extensions
95
96 (add-to-list 'auto-mode-alist '("COMMIT_EDITMSG$" . diff-mode))
97 (add-to-list 'auto-mode-alist '("\\.css$" . css-mode))
c54c1065 » genehack
2008-12-27 add yaml mode
98 (add-to-list 'auto-mode-alist '("\\.ya?ml$" . yaml-mode))
5fcb34d0 »
2008-11-18 initial commit
99 (add-to-list 'auto-mode-alist '("\\.rb$" . ruby-mode))
100 (add-to-list 'auto-mode-alist '("Rakefile$" . ruby-mode))
101 (add-to-list 'auto-mode-alist '("\\.js\\(on\\)?$" . js2-mode))
102 (add-to-list 'auto-mode-alist '("\\.xml$" . nxml-mode))
103
a4aee728 » nonsequitur
2009-03-11 Default to unified diffs.
104 ;; Default to unified diffs
105 (setq diff-switches "-u")
106
5fcb34d0 »
2008-11-18 initial commit
107 ;; Cosmetics
108
109 (eval-after-load 'diff-mode
110 '(progn
111 (set-face-foreground 'diff-added "green4")
112 (set-face-foreground 'diff-removed "red3")))
113
114 (eval-after-load 'magit
115 '(progn
116 (set-face-foreground 'magit-diff-add "green3")
117 (set-face-foreground 'magit-diff-del "red3")))
118
6c4e20af »
2009-09-08 Fix mumamo face tweak; clojure-project function.
119 (eval-after-load 'mumamo
acc7e695 »
2009-02-12 Installation note in the readme for poor souls on w32.
120 '(eval-after-load 'zenburn
3a9d81bf »
2009-10-09 Load environment from a *shudder* plist.xml file on OS X.
121 '(ignore-errors (set-face-background
122 'mumamo-background-chunk-submode "gray22"))))
123
124 ;; Platform-specific stuff
125 (when (eq system-type 'darwin)
126 ;; Work around a bug on OS X where system-name is FQDN
188721b8 »
2009-12-29 OS X plist stuff seems to cause more problems than it fixes.
127 (setq system-name (car (split-string system-name "\\."))))
acc7e695 »
2009-02-12 Installation note in the readme for poor souls on w32.
128
745e4b5f » pedrodelgallego
2009-09-04 Make emacs to use the clipboard
129 ;; make emacs use the clipboard
130 (setq x-select-enable-clipboard t)
131
5fcb34d0 »
2008-11-18 initial commit
132 (provide 'starter-kit-misc)
188721b8 »
2009-12-29 OS X plist stuff seems to cause more problems than it fixes.
133 ;;; starter-kit-misc.el ends here
Something went wrong with that request. Please try again.