-
Notifications
You must be signed in to change notification settings - Fork 0
/
starter-kit-misc.el
85 lines (67 loc) · 2.55 KB
/
starter-kit-misc.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
(starter-kit-install-if-needed 'magit)
(when window-system
(setq frame-title-format '(buffer-file-name "%f" ("%b")))
(blink-cursor-mode -1)
(when (require 'mwheel nil 'no-error) (mouse-wheel-mode t)))
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
(setq visible-bell t
echo-keystrokes 0.1
font-lock-maximum-decoration t
inhibit-startup-message t
transient-mark-mode t
color-theme-is-global t
delete-by-moving-to-trash t
shift-select-mode nil
truncate-partial-width-windows nil
uniquify-buffer-name-style 'forward
whitespace-style '(trailing lines space-before-tab
indentation space-after-tab)
whitespace-line-column 100
ediff-window-setup-function 'ediff-setup-windows-plain
oddmuse-directory (concat starter-kit-dir "oddmuse")
xterm-mouse-mode t
save-place-file (concat starter-kit-dir "places"))
(auto-compression-mode t)
(recentf-mode 1)
(show-paren-mode 1)
(when (> emacs-major-version 21)
(ido-mode t)
(setq ido-enable-prefix nil
ido-enable-flex-matching t
ido-create-new-buffer 'always
ido-use-filename-at-point t
ido-max-prospects 10))
(set-default 'indent-tabs-mode nil)
(set-default 'indicate-empty-lines t)
(set-default 'imenu-auto-rescan t)
(add-hook 'text-mode-hook 'turn-on-auto-fill)
(eval-after-load "ispell"
'(when (executable-find ispell-program-name)
(add-hook 'text-mode-hook 'turn-on-flyspell)))
(defvar starter-kit-coding-hook nil
"Hook that gets run on activation of any programming mode.")
(defalias 'yes-or-no-p 'y-or-n-p)
;; Seed the random-number generator
(random t)
(defun starter-kit-pretty-lambdas ()
(font-lock-add-keywords
nil `(("(\\(lambda\\>\\)"
(0 (progn (compose-region (match-beginning 1) (match-end 1)
,(make-char 'greek-iso8859-7 107))
nil))))))
(when (boundp 'hippie-expand-try-functions-list)
(delete 'try-expand-line hippie-expand-try-functions-list)
(delete 'try-expand-list hippie-expand-try-functions-list))
(setq backup-directory-alist `(("." . ,(expand-file-name
(concat starter-kit-dir "backups")))))
(setq diff-switches "-u")
(eval-after-load 'diff-mode
'(progn
(set-face-foreground 'diff-added "green4")
(set-face-foreground 'diff-removed "red3")))
(eval-after-load 'magit
'(progn
(set-face-foreground 'magit-diff-add "green3")
(set-face-foreground 'magit-diff-del "red3")))