Created
February 12, 2015 22:42
-
-
Save JoeyEremondi/3ed59eb88ec606f7fa5d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 (:family "Source Code Pro" :foundry "adobe" :slant normal :weight semi-bold :height 113 :width normal))))) | |
;;Flycheck hook for haskell-mode | |
;;(eval-after-load 'flycheck | |
;; '(add-hook 'flycheck-mode-hook #'flycheck-haskell-setup)) | |
(add-hook 'haskell-mode-hook 'turn-on-hi2) | |
;;(define-key haskell-mode-map (kbd "M-.") 'haskell-mode-jump-to-def) | |
(eval-after-load 'haskell-mode | |
'(define-key haskell-mode-map [f8] 'haskell-navigate-imports)) | |
(let ((my-cabal-path (expand-file-name "~/stuff/cabal-bin/.cabal-sandbox/bin"))) | |
(setenv "PATH" (concat my-cabal-path ":" (getenv "PATH"))) | |
(add-to-list 'exec-path my-cabal-path)) | |
;;(let ((my-cabal-path (expand-file-name "~/stuff/cabal-bin/.cabal-sandbox/bin"))) | |
;; (setenv "PATH" (concat my-cabal-path ":" (getenv "PATH"))) | |
;; (add-to-list 'exec-path my-cabal-path)) | |
(eval-after-load 'haskell-mode '(progn | |
(define-key haskell-mode-map (kbd "C-c C-l") 'haskell-process-load-or-reload) | |
(define-key haskell-mode-map (kbd "C-c C-z") 'haskell-interactive-switch) | |
(define-key haskell-mode-map (kbd "C-c C-n C-t") 'haskell-process-do-type) | |
(define-key haskell-mode-map (kbd "C-c C-n C-i") 'haskell-process-do-info) | |
(define-key haskell-mode-map (kbd "C-c C-n C-c") 'haskell-process-cabal-build) | |
(define-key haskell-mode-map (kbd "C-c C-n c") 'haskell-process-cabal) | |
(define-key haskell-mode-map (kbd "SPC") 'haskell-mode-contextual-space))) | |
(eval-after-load 'haskell-cabal '(progn | |
(define-key haskell-cabal-mode-map (kbd "C-c C-z") 'haskell-interactive-switch) | |
(define-key haskell-cabal-mode-map (kbd "C-c C-k") 'haskell-interactive-mode-clear) | |
(define-key haskell-cabal-mode-map (kbd "C-c C-c") 'haskell-process-cabal-build) | |
(define-key haskell-cabal-mode-map (kbd "C-c c") 'haskell-process-cabal))) | |
(setq-default cursor-type 'bar) | |
(setq x-select-enable-clipboard t) | |
(setq interprogram-paste-function 'x-cut-buffer-or-selection-value) | |
(autoload 'ghc-init "ghc" nil t) | |
(autoload 'ghc-debug "ghc" nil t) | |
(add-hook 'haskell-mode-hook (lambda () (ghc-init))) | |
(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. | |
'(cua-mode t nil (cua-base)) | |
'(custom-enabled-themes (quote (solarized-light))) | |
'(font-use-system-font t) | |
'(package-archives (quote (("gnu" . "http://elpa.gnu.org/packages/") ("marmalade" . "http://marmalade-repo.org/packages/") ("melpa" . "http://melpa.org/packages/")))) | |
'(show-paren-mode t)) | |
(load-file (let ((coding-system-for-read 'utf-8)) | |
(shell-command-to-string "agda-mode locate"))) | |
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode) | |
(add-hook 'haskell-mode-hook #'rainbow-delimiters-mode) | |
;;(require 'sr-speedbar) | |
(sr-speedbar-open) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment