 ; marmalade is a third party repo that anyone can submit to, so has
 ; many more packages
 (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
+
+; always close the minibuffer on C-x o:
+; <jlf> wilfredh: you could before-advise other-window to quit first
+; if the minibuffer is active.. but it would be better to break that
+; habit :)
 
 (require 'ui-customisations)
 (require 'startup-customisations)

(global-set-key [(f8)] 'flymake-goto-prev-error)
(global-set-key [(f9)] 'flymake-goto-next-error)

; coffeescript mode
(require 'coffee-mode)

; idiomatic coffeescript uses 2 spaces
(defun coffee-custom ()
  "coffee-mode-hook"
 (set (make-local-variable 'tab-width) 2))

(add-hook 'coffee-mode-hook
  '(lambda() (coffee-custom)))


; something in the above has switched on debugging. Switch it off.
; TODO: find offending code
(setq debug-on-error nil)

; suspend seems to crash on Gnome 3, and I don't use it anyway, so just disable it
(defun suspend-emacs (&rest)
  (interactive))
(defun suspend-frame (&rest)
  (interactive))


;;; This was installed by package-install.el.
;;; This provides support for the package system and


; marmalade packages too!
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))

(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.
 '(frame-background-mode (quote dark)))
(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.
 )

