-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal-paddy-config.el
95 lines (66 loc) · 2.41 KB
/
global-paddy-config.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
86
87
88
89
90
91
92
93
94
95
;;visual customizations
(show-paren-mode)
(column-number-mode)
(modify-syntax-entry ?\_ "w" c-mode-syntax-table)
(transient-mark-mode -5)
(put 'narrow-to-region 'disabled nil)
(global-font-lock-mode t)
(setq visible-bell t) ;; No beeping
(setq redisplay-dont-pause t)
(progn
(defun emacs-temp-join (extra-dir-name)
(let ((temp-dir-name (concat
(expand-file-name "~/.emacs.d/emacs-temp")
extra-dir-name)))
(make-directory temp-dir-name t)
temp-dir-name))
(defvar autosave-dir
(emacs-temp-join "emacs_autosaves/"))
(defun auto-save-file-name-p (filename)
(string-match "^#.*#$" (file-name-nondirectory filename)))
(defun make-auto-save-file-name ()
(concat autosave-dir
(if buffer-file-name
(concat "#" (file-name-nondirectory buffer-file-name) "#")
(expand-file-name
(concat "#%" (buffer-name) "#")))))
;; Put backup files (ie foo~) in one place too. (The backup-directory-alist
;; list contains regexp=>directory mappings; filenames matching a regexp are
;; backed up in the corresponding directory. Emacs will mkdir it if necessary.)
(defvar backup-dir (emacs-temp-join "emacs_backups/"))
(setq backup-directory-alist (list (cons "." backup-dir))))
(set-face-foreground 'default "green")
(set-face-background 'default "black")
(defgroup hl-line nil
"Highlight the current line."
:version "21.1"
:group 'editing)
(defcustom hl-line-face 'highlight
"Face with which to highlight the current line."
:type 'face
:group 'hl-line)
(defvar hl-line-overlay nil)
;(set-background-color "black")
;(set-foreground-color "green")
;;editting customizations
(put 'upcase-region 'disabled nil)
(fset 'yes-or-no-p 'y-or-n-p)
(setq x-select-enable-clipboard t)
;; fixes the tab problem with mysql command line client -- sadly sets spaces system wide
;; I guess I will be a space person
(setq-default indent-tabs-mode nil)
(read-abbrev-file (expand-file-name "~/.emacs.d/.abbrev_defs"))
(defun load-expand (filename)
(load-file (expand-file-name filename)))
;(require 'highlight-current-line)
;;(load-expand "~/.emacs.d/vendor/random/display-buffer-for-widescreen.el")
;(require 'display-buffer-for-wide-screen)
;(global-linum-mode)
(defun paddy-put-buffer-filename-in-killring ()
(interactive)
(kill-new buffer-file-name))
;
;
(provide 'global-paddy-config)
;
(load "/home/paddy/.emacs.d/vendor/haskell-mode/haskell-site-file.el")