Skip to content

Instantly share code, notes, and snippets.

@cbilson
Created March 18, 2009 11:51
Show Gist options
  • Save cbilson/81076 to your computer and use it in GitHub Desktop.
Save cbilson/81076 to your computer and use it in GitHub Desktop.
;;
;; my .emacs for the linux machine I am about to repurpose...
;;
(add-to-list 'load-path "~/.emacs.d")
;;
;; Use Consolas as my default font
;;
;;(set-default-font "Consolas-11")
(setq transient-mark-mode t)
;;
;; Setup color-theme
;;
(require 'color-theme)
(color-theme-initialize)
(color-theme-billw)
;;
;; Other misc. startup stuff
;;
(require 'ffap)
(ffap-bindings)
(setq ffap-require-prefix t)
;;
;; Setup C# Mode
;;
;; Import C# mode
(autoload 'csharp-mode "c#" "Major mode for editing C# files")
(setq auto-mode-alist
(append '(("\\.cs$" . csharp-mode)) auto-mode-alist))
;;
;; Setup f# mode
;;
(setq load-path (cons "~/.emacs.d/fsharp" load-path))
(setq auto-mode-alist
(cons '("\\.fs[iylx]?$" . fsharp-mode) auto-mode-alist))
(autoload 'fsharp-mode "fsharp" "Major mode for editing F# code." t)
(autoload 'run-fsharp "inf-fsharp" "Run an inferior F# process." t)
(setq inferior-fsharp-program "~/mono/bin/mono /opt/FSharp-1.9.6.2/bin/fsi.exe --nologo --no-gui")
(setq fsharp-compiler "~/mono/bin/mono /opt/FSharp-1.9.6.2/bin/fsc.exe")
;;
;; Setup Haskell mode
;;
(load "/usr/share/emacs/site-lisp/haskell-mode/haskell-site-file.el")
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
;;(add-hook 'haskell-mode-hook 'turn-on-haskell-simple-indent)
(add-hook 'haskell-mode-hook 'font-lock-mode)
(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.
'(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.
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment