Skip to content

Instantly share code, notes, and snippets.

@fearofcode
Created September 5, 2011 07:55
Show Gist options
  • Save fearofcode/1194353 to your computer and use it in GitHub Desktop.
Save fearofcode/1194353 to your computer and use it in GitHub Desktop.
a minimal .emacs, just a few things for javascript
(tool-bar-mode)
(column-number-mode)
(scroll-bar-mode 0)
(blink-cursor-mode 0)
(set-cursor-color "dark grey")
;disable backup
(setq backup-inhibited t)
;disable auto save
(setq auto-save-default nil)
(setq-default indent-tabs-mode nil)
; autocomplete stuff
(add-to-list 'load-path "~/.emacs.d/")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d//ac-dict")
(ac-config-default)
; Use dictionaries by default
(setq-default ac-sources (add-to-list 'ac-sources 'ac-source-dictionary))
(global-auto-complete-mode t); Start auto-completion after 2 characters of a word
(setq ac-auto-start 2)
; case sensitivity is important when finding matches
(setq ac-ignore-case nil)
(add-to-list 'load-path "~/code/lintnode")
(require 'flymake-jslint)
;; Make sure we can find the lintnode executable
(setq lintnode-location "~/code/lintnode")
;; JSLint can be... opinionated
(setq lintnode-jslint-excludes (list 'nomen 'undef 'plusplus 'onevar 'white))
;; Start the server when we first open a js file and start checking
(add-hook 'js-mode-hook
(lambda ()
(lintnode-hook)))
(add-to-list 'load-path "~/emacs/")
;; Nice Flymake minibuffer messages
(require 'flymake-cursor)
(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.
'(blink-cursor-mode nil)
'(column-number-mode t)
'(inhibit-startup-screen t))
(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.
'(default ((t (:inherit nil :stipple nil :background "white" :foreground "black" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 180 :width normal :foundry "bitstream" :family "Courier 10 Pitch")))))
(add-to-list 'load-path "~/.emacs.d/coffee-mode")
(require 'coffee-mode)
(add-to-list 'auto-mode-alist '("\\.coffee$" . coffee-mode))
(add-to-list 'auto-mode-alist '("Cakefile" . coffee-mode))
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(defun coffee-custom ()
"coffee-mode-hook"
(set (make-local-variable 'tab-width) 2))
(add-hook 'coffee-mode-hook
'(lambda() (coffee-custom)))
(cd "~/workspace/esports/")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment