Skip to content
Browse files

added project-mode and vertical ido.

  • Loading branch information...
1 parent 8815da6 commit 2aae94076a83b6ae71d0803aac656c62f227bb31 @jamieorc committed
Showing with 45 additions and 3 deletions.
  1. +45 −3 init.el
View
48 init.el
@@ -1,17 +1,20 @@
+(add-to-list 'load-path "/Users/jamieorc/.emacs.d/local/")
+
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)
-
(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.
'(global-linum-mode t)
- '(slime-net-coding-system (quote utf-8-unix))
- '(global-auto-revert-mode t))
+ '(slime-net-coding-system (quote utf-8-unix)))
+
+
+(global-auto-revert-mode 1)
(setq linum-format "%5d ")
(setq mac-option-modifier 'meta
@@ -19,6 +22,24 @@
(setq exec-path (append exec-path '("/usr/local/bin")) )
+;; coffeescript
+(setq coffee-tab-width 2)
+
+(require 'ido)
+(ido-mode t)
+(setq ido-enable-prefix nil
+ ido-enable-flex-matching t
+ ido-auto-merge-work-directories-length nil
+ ido-create-new-buffer 'always
+ ido-use-filename-at-point 'guess
+ ido-use-virtual-buffers t
+ ido-handle-duplicate-virtual-buffers 2
+ ido-max-prospects 10)
+;; Display ido results vertically, rather than horizontally
+(setq ido-decorations (quote ("\n " "" "\n " "\n ..." "[" "]" " [No match]" " [Matched]" " [Not readable]" " [Too big]" " [Confirm]")))
+(defun ido-disable-line-trucation () (set (make-local-variable 'truncate-lines) nil))
+(add-hook 'ido-minibuffer-setup-hook 'ido-disable-line-trucation)
+
(setq locale-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
@@ -46,6 +67,8 @@
'(lambda ()
(define-key clojure-mode-map (kbd "s-r") 'slime-eval-defun)))
(add-hook 'clojure-mode-hook 'textmate-mode)
+(add-hook 'html-mode-hook 'textmate-mode)
+(add-hook 'ruby-mode-hook 'textmate-mode)
(add-hook 'midje-mode-hook
'(lambda ()
(define-key midje-mode-map (kbd "s-=") '(insert " => "))))
@@ -62,6 +85,25 @@
(eval-after-load "auto-complete"
'(add-to-list 'ac-modes 'slime-repl-mode))
+;; Use node for js-comint
+(require 'js-comint)
+;; Use node as our repl
+(setq inferior-js-program-command "node")
+(setq inferior-js-mode-hook
+ (lambda ()
+ ;; We like nice colors
+ (ansi-color-for-comint-mode-filter)
+ ;; Deal with some prompt nonsense
+ (add-to-list 'comint-preoutput-filter-functions
+ (lambda (output)
+ (replace-regexp-in-string
+ ".*1G\.\.\..*5G" "..."
+ (replace-regexp-in-string ".*1G.*3G" "> " output))))))
+
+;; emacs-project-mode
+(require 'project-mode)
+(project-load-all)
+
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.

0 comments on commit 2aae940

Please sign in to comment.
Something went wrong with that request. Please try again.