;; liuw's dotemacs file
(setq frame-title-format "%b@emacs")
;; display time and date
(display-time)
(setq display-time-24hr-format t)
(setq display-day-and-date t)
;; some misc settings, make editing feel better
(setq visible-bell t)
(column-number-mode t)
(transient-mark-mode t)
(show-paren-mode t)
(setq show-paren-style 'parenthesis)
(hl-line-mode t)
;; no backup files
(setq make-backup-files nil)
;; end file with a new line
(setq require-final-newline t)
;; default tab width is 2, now change it to 4
(setq default-tab-width 4)
;; scroll smoothly
(setq scroll-margin 3
scroll-step 1
scroll-conservatively 10000)
;; larger kill ring
(setq kill-ring-max 200)
;; show time stamp
(require 'time-stamp)
(setq time-stamp-active t)
(setq time-stamp-warn-inactive t)
(setq time-stamp-fromat "%:y-%02m-%02d %3a %02H:%02M:%02S liuw")
;; syntax highlight
(global-font-lock-mode t)
;; start a emacs server, so that we can use emacsclient
(server-start)
;; tool bar and menu bar, i need them
(tool-bar-mode t)
(menu-bar-mode t)
;; make life colorful
(require 'color-theme)
(setq color-theme-is-global t)
(color-theme-initialize)
(color-theme-comidia)
;; no splash screen
(setq inhibit-startup-screen t)
;; smooth mouse scroll
(global-set-key [(mouse-5)] '(lambda() (interactive) (mouse-smooth-scroll 1)))
(global-set-key [(mouse-4)] '(lambda() (interactive) (mouse-smooth-scroll -1)))
;; setup coding system
(prefer-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
;; iswitch buffer mode
(iswitchb-mode t)