summaryrefslogtreecommitdiffstats
path: root/lisp/init-appearance.el
blob: 7e48598b742eb3eec5d5a72d38c498ab7cd1a49a (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
50
51
52
53
;; disable splash
(setq inhibit-startup-message t)

;; hide menubar when not on os x
(when (and (fboundp 'menu-bar-mode) (not (eq system-type 'darwin)))
  (menu-bar-mode -1))

;; hide toolbar
(when (fboundp 'tool-bar-mode)
  (tool-bar-mode -1))

;; hide scrollbar
(when (fboundp 'scroll-bar-mode)
  (scroll-bar-mode -1))

;; highlight current line
(global-hl-line-mode)

;; set theme
(if (display-graphic-p)
    (progn (require-package 'afternoon-theme)
           (load-theme 'afternoon t)
           ;; reset mode-line font
           (set-face-attribute 'mode-line nil
                               :family 'unspecified))
  (set-face-background hl-line-face "gray13"))

;; display line numbers
(require 'linum)
(global-linum-mode 1)
(setq linum-format " %d ")

;; highlight matching parentheses
(show-paren-mode 1)

;; highlight lines exceeding 80 columns
(require 'whitespace)
(setq whitespace-style '(face empty tabs lines-tail trailing))
(global-whitespace-mode t)

;; disable word wrapping
(setq-default truncate-lines 1)

;; display line and column numbers in mode-line
(setq line-number-mode t)
(setq column-number-mode t)

;; display date and time in mode-line
(setq display-time-default-load-average nil
      display-time-format "%t %a %b %d, %R")
(display-time)

(provide 'init-appearance)