;;;-------- ;;; Display ;;;-------- ;; File and buffer name in title bar (setq frame-title-format '(buffer-file-name "%b --- %f" "%b")) ;; Size when start (add-to-list 'default-frame-alist '(width . 110)) (add-to-list 'default-frame-alist '(height . 80)) ;; Show parentheses (show-paren-mode 1) ;; Number of column in status bar, and numbers of lines on the left (setq column-number-mode t) (global-linum-mode t) ;; Time and date ;(setq display-time-day-and-date t) ;(setq display-time-24hr-format t) ;(display-time) (setq inhibit-startup-message t) ;; (require 'fill-column-indicator) (setq-default fci-rule-column 79) ;; (require 'whitespace) (setq-default show-trailing-whitespace t) ;;;-------- ;;; Edition ;;;-------- ;; Spaces instead tab (setq-default indent-tabs-mode nil) ;; Auto-complete (require 'auto-complete-config) (add-to-list 'ac-dictionary-directories "/usr/share/auto-complete/dict") (ac-config-default) ;;;--------- ;;; Spelling ;;;--------- (setq ispell-program-name "aspell") (setq ispell-local-dictionary "en") (add-hook 'text-mode-hook 'flyspell-mode) (add-hook 'prog-mode-hook 'flyspell-prog-mode) ;;;----- ;;; Web ;;;----- (setq css-indent-offset 2) (setq html-indent-offset 2) (setq indent-tabs-mode nil js-indent-level 2)