summaryrefslogtreecommitdiff
path: root/emacs-lisp/dot.emacs.el.orig
blob: f9783f8a431e326b6c13a8726d2905865afa32d0 (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
;;; dot.emacs - a .emacs file in p-res
;; Copyright 2005 Daniel Silverstone

(setq confirm-kill-emacs 'y-or-n-p)
(setq custom-file "~/.resources/emacs-lisp/custom-resources.el")

(load "custom-resources")

;;; Add all extra paths
(setq load-path (cons "~/.resources/emacs-lisp/modes"
		(cons "~/.resources/emacs-lisp/general"
                 load-path))))

;;; Bring in configuration information

(load "machine-settings")

;; General settings (colours etc)

(load "settings")

;; Extra mode stuff
(load "load-modes")

(require 'cmode-stuff)
(require 'perl-stuff)

(require 'fill-column-indicator)

(setq interpreter-mode-alist
      (append '(("perl"  . cperl-mode)
		("perl5" . cperl-mode)
		)
	      interpreter-mode-alist)
      )

(setq auto-mode-alist
      (append
       '(
	 ("\\.1$"      . nroff-mode) ; man pages end in numbers...
	 ("\\.2$"      . nroff-mode)
	 ("\\.3$"      . nroff-mode)
	 ("\\.4$"      . nroff-mode)
	 ("\\.5$"      . nroff-mode)
	 ("\\.6$"      . nroff-mode)
	 ("\\.7$"      . nroff-mode)
	 ("\\.8$"      . nroff-mode)
	 ("\\.man$"    . nroff-mode) ; or any of the following..
	 ("\\.me$"     . nroff-mode)
	 ("\\.mm$"     . nroff-mode)
	 ("\\.mr$"     . nroff-mode)
	 ("\\.ms$"     . nroff-mode)
	 ("\\.p$"      . pascal-mode)	; could be prolog, I suppose
	 ("\\.pas$"    . pascal-mode)	; definately pascal.
	 ("\\.pfc$"    . pascal-mode)       ; Pascal-FC
	 ("\\.awk$"    . awk-mode)
	 ("\\.pic$"    . picture-mode)
	 ("\\.nl$"     . prolog-mode) ; Yeah, sure.. Probably standard.
	 ("\\.tar$"    . tar-mode)
	 ("\\.tgz$"    . tar-mode)
	 ("\\.ps$"     . postscript-mode)
	 ("\\.m$"      . fundamental-mode)
	 ("\\.swift$"  . swift-mode)
	 ("\\.Swift$"  . swift-mode)
	 ("\\.SWIFT$"  . swift-mode)
	 ("\\.latex$"  . latex-mode)
	 ("\\.cls$"    . latex-mode)
	 ("\\.\\([pP][Llm]\\|al\\)$" . cperl-mode)
	 ("/?[Mm]akefile" . makefile-mode)
	 ("\\.[Ss][qQ][lL]$" . plsql-mode)
	 ("\\.xs$"     . c-mode)
	 ("\\.pod$"    . cperl-mode)
	 ("\\.sty$"    . latex-mode)
	 ("\\.java$"   . java-mode-kludge)
	 ("\\.xml$"    . xml-mode)
	 ("\\.dtd$"    . dtd-mode)
	 ("\\.C$"      . c++-mode)
	 ("\\.H$"      . c++-mode)
	 ("\\.cxx"     . c++-mode)
	 ("\\.cpp"     . c++-mode)
	 ("\\.cc"      . c++-mode)
	 ("\\.java$"   . java-mode)
	 ("\\.php$"    . sh-mode)
         ("\\.tac$"    . python-mode)
	 )
       auto-mode-alist)
      )


(require 'project-local)

(require 'linum)
(global-linum-mode t)

(define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1)))
(global-fci-mode 1)

(provide 'dot.emacs)