summaryrefslogtreecommitdiff
path: root/.emacs.d.back/core/rogs-ui.el
blob: cf8fde4cc4623e80f3d563442362d418e6cf3477 (plain)
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
;;; ui.el --- rogs default ui configuration
;;
;;; Commentary:
;;
;; My default configuration for UI
;;
;;; Code:

;; Theme
(load-theme 'bliss t)
(set-frame-font "Source Code Pro Medium 11")

;; Line number
(global-linum-mode 1)
(line-number-mode 1)

;; Column number
(column-number-mode 1)

;; Parentesis highlight
(show-paren-mode 1)

;; NO scrollbar, NO toolbar NO menubar
(scroll-bar-mode -1)
(tool-bar-mode -1)
(menu-bar-mode -1)
(horizontal-scroll-bar-mode -1)

;; Basic: Maximize Buffer
(when (fboundp 'winner-mode)
  (winner-mode 1))

;; Electric pair mode
(electric-pair-mode 1)
(push '(?\' . ?\') electric-pair-pairs)
(push '(?\` . ?\`) electric-pair-pairs)

;; Removes mouse from code
(mouse-avoidance-mode "animate")

;; Selection highlight
(delete-selection-mode 1)

;; Basic: Turn off bugging yes-or-no-p
(fset 'yes-or-no-p 'y-or-n-p)

;; Tabs with spaces
(setq-default indent-tabs-mode nil)

;; Delete selection mode
(delete-selection-mode 1)

;; Wind move
(windmove-default-keybindings 'meta)

;; Start maximized
(add-to-list 'default-frame-alist '(fullscreen . maximized))

;; Overriding background color
(set-background-color "black")

(provide 'rogs-ui)
;;; rogs-ui.el ends here