summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2011-02-16 10:34:07 +0100
committerGravatar Tom Willemsen2011-02-16 10:34:07 +0100
commitf2356bef414177df54a3c186796d02917be29914 (patch)
treea21d74f876ac05051b431e47f17215a4442d0ef5 /emacs
parentc9d208a78ded357b2cb2983e26205425341a31cd (diff)
downloaddotfiles-f2356bef414177df54a3c186796d02917be29914.tar.gz
dotfiles-f2356bef414177df54a3c186796d02917be29914.zip
Added auto-complete-clang and threw out some old stuff
Diffstat (limited to 'emacs')
-rw-r--r--emacs20
1 files changed, 9 insertions, 11 deletions
diff --git a/emacs b/emacs
index 97f83e5..52357ef 100644
--- a/emacs
+++ b/emacs
@@ -1,6 +1,7 @@
;; -*- mode: Emacs-Lisp; -*-
(add-to-list 'load-path "~/.emacs.d")
(add-to-list 'load-path "~/.emacs.d/naquadah-theme")
+(add-to-list 'load-path "~/.emacs.d/auto-complete-clang")
;; Requires
(require 'uniquify)
@@ -8,10 +9,10 @@
(require 'color-theme)
(require 'flymake)
(require 'color-theme-gruber-darker)
-(require 'tabbar)
(require 'minimap)
(require 'column-marker)
(require 'color-theme-weirdness)
+(require 'auto-complete-clang)
;; Auto complete
(require 'auto-complete-config)
@@ -52,8 +53,6 @@
; autosave file location
inhibit-default-init t)
(setq-default indent-tabs-mode nil) ; spaces, no tabs
-;;(setq whitespace-line-column 80)
-;;(setq whitespace-style '(face lines))
(fset 'yes-or-no-p 'y-or-n-p) ; switch yes or no answers to y or n
; answers
@@ -74,8 +73,6 @@
;; Keybindings
(global-set-key "\C-m" 'newline-and-indent) ; Automatically indent on newline
(global-set-key (kbd "C-x n r") 'narrow-to-region )
-(global-set-key [C-next] 'tabbar-forward )
-(global-set-key [C-prior] 'tabbar-backward )
(global-set-key [C-tab] 'hs-toggle-hiding )
(global-set-key (kbd "<f9>") 'compile)
@@ -84,6 +81,7 @@
(add-to-list 'auto-mode-alist '("\\.vapi$" . vala-mode))
(add-to-list 'auto-mode-alist '("\\.cs$" . csharp-mode))
(add-to-list 'auto-mode-alist '("\\.bat$" . batch-mode))
+(add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))
(add-to-list 'file-coding-system-alist '("\\.vala$" . utf-8))
(add-to-list 'file-coding-system-alist '("\\.vapi$" . utf-8))
@@ -91,8 +89,6 @@
(add-to-list 'compilation-finish-functions 'my-comp-finish-function)
;; Color theme
-;(color-theme-weirdness2)
-;(require 'naquadah-theme)
(require 'naquadah-theme)
;; Test for frame fonts
@@ -124,7 +120,10 @@
(add-hook 'c-mode-hook
(lambda ()
(hs-minor-mode t)
- (column-marker-1 80)))
+ (column-marker-1 80)
+; (auto-complete-mode)
+; (setq ac-sources '(ac-source-clang))
+ ))
;;; CSS
(add-hook 'css-mode-hook
(lambda ()
@@ -149,14 +148,13 @@
;; 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.
- '(tabbar-mode t nil (tabbar)))
+)
(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.
- '(tabbar-selected ((t (:inherit tabbar-default :background "#1E2320" :foreground "#F0DFAF"))))
- '(tabbar-unselected ((nil (:background "#3F3F3F" :foreground "#DCDCCC")))))
+)
;;; This was installed by package-install.el.