summaryrefslogtreecommitdiffstats
path: root/.emacs
diff options
context:
space:
mode:
authorGravatar ryuslash2010-09-23 22:05:17 +0200
committerGravatar ryuslash2010-09-23 22:05:17 +0200
commit232e9182c1f0ae4f5e007c83f19cddb3ebe35c6f (patch)
treefcf6f3c551b212c79b29c991fbae467eef003509 /.emacs
parentec687eede976c605eba60f125a107288813fccba (diff)
downloaddotfiles-232e9182c1f0ae4f5e007c83f19cddb3ebe35c6f.tar.gz
dotfiles-232e9182c1f0ae4f5e007c83f19cddb3ebe35c6f.zip
New theme, elc, flymake, set-frame-font, my-comp-finish-function
Added theme color-theme-gruber-darker Loading elc files instead of el, supposed to make it up to 6x faster Added flymake again, since I figured out how to make it work with scratchbox (a little) Changed call set-default-font to set-frame-font, since default-font seems to be deprecated Changed my-comp-finish from a setq to an add-list since the setq seems to be deprecated
Diffstat (limited to '.emacs')
-rw-r--r--.emacs23
1 files changed, 14 insertions, 9 deletions
diff --git a/.emacs b/.emacs
index 66c3bcb..9d928fc 100644
--- a/.emacs
+++ b/.emacs
@@ -5,20 +5,21 @@
(require 'uniquify)
(require 'autopair)
(require 'color-theme)
+(require 'flymake)
;; Autoloads
(autoload 'vala-mode
- "vala-mode.el" "A Major mode for editing Vala files" t)
+ "vala-mode.elc" "A Major mode for editing Vala files" t)
(autoload 'csharp-mode
- "csharp-mode.el" "A Major mode for editing C# files" t)
+ "csharp-mode.elc" "A Major mode for editing C# files" t)
(autoload 'javascript-mode
- "javascript.el" "A Major mode for editing JavaScript files" t)
+ "javascript.elc" "A Major mode for editing JavaScript files" t)
(autoload 'sqlplus-mode
- "sqlplus,el" "A Major mode for communicating with Oracle" t)
+ "sqlplus,elc" "A Major mode for communicating with Oracle" t)
(autoload 'batch-mode
- "batch-mode.el" "A Major mode for editing Batch files" t)
+ "batch-mode.elc" "A Major mode for editing Batch files" t)
(autoload 'rainbow-mode
- "rainbow-mode.el" "A Minor mode for showing colors inline" t)
+ "rainbow-mode.elc" "A Minor mode for showing colors inline" t)
;; Functions
(defun what-face (pos)
@@ -38,7 +39,7 @@
;; Platform specifics
(if (eq system-type 'gnu/linux) ; if we're running linux
- (set-default-font "-xos4-terminus-medium-*-*-*-14-*-*-*-*-*-*-*"))
+ (set-frame-font "-xos4-terminus-medium-*-*-*-14-*-*-*-*-*-*-*"))
;; Variables
(setq
@@ -47,8 +48,7 @@
font-lock-maximum-decoration t ; denotes my interest in maximum possible fontification
uniquify-buffer-name-style 'reverse ; reverse uniquify file names
backup-directory-alist `((".*" . ,temporary-file-directory)) ; backup filelocation
- auto-save-file-name-transforms `((".*" ,temporary-file-directory t)) ; autosave file location
- compilation-finish-function 'my-comp-finish-function) ; show short message after compilation
+ auto-save-file-name-transforms `((".*" ,temporary-file-directory t))) ; autosave file location
(setq-default indent-tabs-mode nil) ; spaces, no tabs
@@ -77,6 +77,11 @@
(add-to-list 'file-coding-system-alist '("\\.vala$" . utf-8))
(add-to-list 'file-coding-system-alist '("\\.vapi$" . utf-8))
+(add-to-list 'compilation-finish-functions 'my-comp-finish-function)
+
;; Color theme
(require 'color-theme-weirdness)
(color-theme-weirdness)
+
+;; Hooks
+(add-hook 'find-file-hook 'flymake-find-file-hook)