summary refs log tree commit diff
path: root/emacs.d/inits/00_ui.el
blob: 29d900abd180c334e8060be2a57fbde3910cac62 (plain) (blame)
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
;; no menu
(menu-bar-mode -1)

;; show parenthesis
(show-paren-mode +1)

;; enable colors
(global-font-lock-mode +1)

;; no startup screen
(setq inhibit-startup-message t)
(setq initial-scratch-message ";; scratch buffer")

(setq frame-title-format '(buffer-file-name "%f" ("%b")))

;; no blink cursor
(blink-cursor-mode -1)

;; show the column number in the mode-line
(setq column-number-mode t)

(when window-system
  ;;hide tool-bar
  (tool-bar-mode 0)
  ;;hide scroll-bar
  (scroll-bar-mode 0)
  ;;hide menu-bar
  (menu-bar-mode +1)
  ;; set the font size and family
  (custom-set-faces '(default ((t (:height 130 :family "Droid Sans Mono"))))))

(require 'whitespace)
(global-whitespace-mode 1)
(setq whitespace-style '(face trailing tabs tab-mark))

(use-package leuven-theme
  :init
  (load-theme 'leuven t))

(use-package smart-mode-line
  :ensure t
  :config
  (use-package smart-mode-line-powerline-theme
    :ensure t
    :if window-system                   ; enable only in gui mode
    :config
    (setq sml/theme 'light))
  (setq rm-whitelist '(""))
  (sml/setup))