2010-07-27 22:07:30 +02:00
|
|
|
(require 'paren)
|
|
|
|
(require 'uniquify)
|
|
|
|
|
2010-06-30 20:59:12 +02:00
|
|
|
(load-file "~/.emacs.d/include.el")
|
|
|
|
|
|
|
|
(if (eq system-type 'gnu/linux) ; if we're running linux
|
|
|
|
(load-file "~/.emacs.d/linux/.emacs"))
|
|
|
|
|
2010-07-27 22:07:30 +02:00
|
|
|
(setq inhibit-startup-message t) ; don't show welcome
|
|
|
|
(setq-default indent-tabs-mode nil) ; spaces, no tabs
|
|
|
|
(tool-bar-mode nil) ; no toolbar
|
|
|
|
(menu-bar-mode nil) ; no menu
|
|
|
|
(line-number-mode nil) ; don't show line numbers in splitter
|
|
|
|
(global-linum-mode t) ; show line numbers in gutter
|
|
|
|
(column-number-mode t) ; show column numbers in splitter
|
|
|
|
(color-theme-weirdness) ; my theme
|
|
|
|
(global-font-lock-mode t) ; always show syntax higlighting, this may
|
|
|
|
; be old
|
|
|
|
(fset 'yes-or-no-p 'y-or-n-p) ; don't want to have to type yes or no
|
|
|
|
(setq require-final-newline t) ; I always get bothered by this with the likes of fstab
|
|
|
|
(show-paren-mode t)
|
|
|
|
(setq font-lock-maximum-decoration t) ; denotes our interest in maximum possible fontification
|
|
|
|
(setq uniquify-buffer-name-style 'reverse)
|
|
|
|
|
|
|
|
;; Keybindings
|
|
|
|
(global-set-key "\C-m" 'newline-and-indent)
|
2010-06-30 20:59:12 +02:00
|
|
|
|
2010-07-13 15:25:54 +02:00
|
|
|
;; Autopair Mode
|
|
|
|
(autopair-global-mode)
|
|
|
|
|
2010-06-30 20:59:12 +02:00
|
|
|
;; Vala Mode
|
|
|
|
(add-to-list 'auto-mode-alist '("\\.vala$" . vala-mode))
|
|
|
|
(add-to-list 'auto-mode-alist '("\\.vapi$" . vala-mode))
|
|
|
|
(add-to-list 'file-coding-system-alist '("\\.vala$" . utf-8))
|
|
|
|
(add-to-list 'file-coding-system-alist '("\\.vapi$" . utf-8))
|
|
|
|
|
|
|
|
;; C# Mode
|
|
|
|
(setq auto-mode-alist (cons `("\\.cs\\'" . csharp-mode) auto-mode-alist))
|
|
|
|
|
2010-07-27 22:07:30 +02:00
|
|
|
;; Batch Mode
|
|
|
|
(setq auto-mode-alist (cons `("\\.bat\\'" . batch-mode) auto-mode-alist))
|
|
|
|
|
2010-06-30 20:59:12 +02:00
|
|
|
;; Autosave location
|
|
|
|
(setq backup-directory-alist
|
|
|
|
`((".*" . ,temporary-file-directory)))
|
|
|
|
(setq auto-save-file-name-transforms
|
|
|
|
`((".*" ,temporary-file-directory t)))
|
|
|
|
|
|
|
|
;; Autocomplete
|
|
|
|
(add-to-list 'ac-dictionary-directories "~/.emacs.d//ac-dict")
|
2010-07-13 15:25:54 +02:00
|
|
|
(ac-config-default)
|
|
|
|
|
2010-08-18 12:35:13 +02:00
|
|
|
;; ide-skel
|
|
|
|
(require 'tabbar)
|
|
|
|
(require 'ide-skel)
|
|
|
|
|
2010-07-13 15:25:54 +02:00
|
|
|
(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.
|
|
|
|
)
|