;; .emacs for GNU Emacs 23.2
;; 2010-11-12
;; by Gernot WALZL

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )

;; disable startup screen
(setq inhibit-startup-screen t)

;; show line- and column number
(line-number-mode t)
(column-number-mode t)

;; semantic mode (source code parsers)
;; http://www.gnu.org/software/emacs/manual/html_node/semantic/Semantic-mode.html
(setq semantic-default-submodes '(
  global-semantic-highlight-func-mode    ;; highlight the current tag
  global-semantic-decoration-mode        ;; additional tag decorations
  global-semantic-stickyfunc-mode        ;; show current fun in header line
  global-semantic-idle-completions-mode  ;; show completions when idle
  global-semantic-idle-scheduler-mode    ;; reparse buffer when idle
  global-semanticdb-minor-mode           ;; maintain tag database
  global-semantic-idle-summary-mode      ;; show summary of tag at point
  global-semantic-mru-bookmark-mode))    ;; provide 'switch-to-buffer'-like
                                         ;;   keybinding for tag names
(semantic-mode t)

;; autocompletion with TAB
(setq-default tab-always-indent 'complete)
;; always use spaces for indentation
(setq-default indent-tabs-mode nil)
;; set a default tab width of 4 characters
(setq-default tab-width 4)

;; spell checker: M-x ispell
(setq-default ispell-program-name "aspell")
