-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
77 lines (56 loc) · 1.59 KB
/
init.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
(defvar emacs-root "~/emacs")
(add-to-list 'load-path emacs-root)
;;;; startup options
(setq inhibit-startup-screen t)
(setq initial-scratch-message nil)
;;;; assume themse are installed vial elpa/marmalade
;; (add-to-list 'custom-theme-load-path "~/.emacs.d/elpa/zenburn-theme-2.1/")
(require 'themes-setup)
(load-theme 'misterioso t)
;;;; remove menu- and tool-bars if needed
(unless window-system
(menu-bar-mode -1))
(when window-system
(tool-bar-mode -1))
;;;; misc. UI settings
; show the current line and column numbers
(line-number-mode t)
(column-number-mode t)
(global-linum-mode t)
; highligh the current light
(global-hl-line-mode t)
(set-face-background hl-line-face "grey10")
(set-face-foreground 'highlight nil)
; highlight matching parens
(show-paren-mode t)
;;;; use versioned backups, don't clobber symlinks, and don't litter fs tree
(setq
backup-by-copying t
backup-directory-alist
'(("." . "~/.emacs.d/saves"))
delete-old-versions t
kept-new-versions 6
kept-old-version 2
version-control 5)
;;;; allow changing cases of regions
(put 'downcase-region 'disabled nil)
(put 'upcase-region 'disabled nil)
;;;; setup for org-mode
(require 'orgmode-setup)
;;;; erc setup
(when (file-exists-p (concat emacs-root "/erc-setup.el"))
(require 'erc-setup))
;;;; mode hooks
(require 'modes-setup)
;;; centered cursor
;; (when window-system
;; (global-centered-cursor-mode +1))
;;;; package repos
(require 'packages-setup)
; autopair braces, quotes
(autopair-global-mode)
; yasnippet mode
(yas-global-mode 1)
; flycheck
;(add-hook 'after-init-hook #'global-flycheck-mode)
(ido-mode t)