From 722c13a8fc093bc67b9be444547571d544cb79a0 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 30 Jun 2010 20:59:12 +0200 Subject: Switched over from dotemacs to doteverything --- .emacs | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .emacs (limited to '.emacs') diff --git a/.emacs b/.emacs new file mode 100644 index 0000000..356e464 --- /dev/null +++ b/.emacs @@ -0,0 +1,35 @@ +(load-file "~/.emacs.d/include.el") + +(if (eq system-type 'gnu/linux) ; if we're running linux + (load-file "~/.emacs.d/linux/.emacs")) + +(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 + +;; 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)) + +;; 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") +(ac-config-default) \ No newline at end of file -- cgit v1.2.3-54-g00ecf