cvsdist b39f9d
;; Aspell is a replacement for ispell
cvsdist b39f9d
(setq-default ispell-program-name "aspell") 
cvsdist b39f9d
cvsdist b39f9d
;; Add python support
cvsdist 7ceb3c
(require 'python-mode)
cvsdist b39f9d
(setq auto-mode-alist
cvsdist b39f9d
      (cons '("\\.py$" . python-mode) auto-mode-alist))
cvsdist b39f9d
(setq interpreter-mode-alist
cvsdist 98a749
      (cons '("python" . python-mode) interpreter-mode-alist))
cvsdist a8bb5f
cvsdist a8bb5f
;; run functions from the /usr/share/emacs/site-lisp/site-start.d directory
cvsdist a8bb5f
;; Files in this directory ending with ".el" are run on startup
cvsdist a8bb5f
cvsdist 98a749
(mapc 'load (directory-files "/usr/share/emacs/site-lisp/site-start.d" t "\\.el\\'"))
cvsdist a8bb5f
cvsdist a8bb5f
;; Use the rpm-spec-mode for spec files
cvsdist a8bb5f
(require 'rpm-spec-mode)
cvsdist a8bb5f
(setq auto-mode-alist
cvsdist a8bb5f
      (cons '("\\.spec$" . rpm-spec-mode) auto-mode-alist))
cvsdist 272baf
cvsdist 272baf
;; Enable utf-8 in locales using utf-8. In RHL, all of these end in .UTF-8
cvsdist 272baf
;; The utf-8 support in emacs is limited, problems can be expected - especially
cvsdist 272baf
;; outside latin1
cvsdist 272baf
cvsdist 272baf
(cond ((equal (substring (concat "     " (getenv "LANG")) -5) "UTF-8")
cvsdist 272baf
      (setq locale-coding-system 'utf-8)
cvsdist 272baf
      (set-terminal-coding-system 'utf-8)
cvsdist 272baf
      (set-keyboard-coding-system 'utf-8)
cvsdist 272baf
      (set-selection-coding-system 'utf-8)
cvsdist 272baf
      (prefer-coding-system 'utf-8)))
cvsdist 272baf
cvsdist 272baf
cvsdist 272baf