-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdhammacakka.el
93 lines (68 loc) · 2.3 KB
/
dhammacakka.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
;; This file is part of Bodhi.
;;
;; Bodhi is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; Bodhi is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with Bodhi. If not, see <http://www.gnu.org/licenses/>.
;;
;;
; wikipedia.org/wiki/Dharmachakra
;
; This code performs the common setup.
; This is lighter than other starter kits.
; Also, this is way more mouse-friendly
; There are very good reasons for this.
;
;
; Keymap is not there.
; keymap might be evil-mode, ergoemacs,
; or one of my bodhi implementation.
; ~~~~
; ~~~~ Lighter startup
; See als http://ergoemacs.org/emacs/emacs_make_modern.html
(setq inhibit-splash-screen t)
(setq inhibit-startup-message t)
(setq initial-scratch-message "~~~~~~~~~~~~~\n")
(setq vc-handled-backends nil)
; ~~~~
; ~~~~ Display
(global-linum-mode 1) ;; line number
(column-number-mode t) ;; column number
(global-visual-line-mode 1) ; wrap line
(setq frame-title-format '("%b")) ; lighter title
; GUI-friendly, not GUIlty.
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
;(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
; ~~~~
; ~~~~ Behaviour
(setq make-backup-files nil)
(setq auto-save-default nil)
(require 'recentf)
(recentf-mode 1)
(defalias 'yes-or-no-p 'y-or-n-p)
; do not break on real files
(defun dhamma-big-files ()
"Disable font lock when perf makes it necessary."
(when (> (buffer-size) (* 1024 1024))
;(setq buffer-read-only t)
;(buffer-disable-undo)
(font-lock-mode nil)
(fundamental-mode)))
(add-hook 'find-file-hooks 'dhamma-big-files)
; ~~~~
; ~~~~ Friends
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(provide 'dhammacakka)