1 ; Prevent the cursor from blinking
4 ;; y-or-n instead of yes-or-no
5 (defalias 'yes-or-no-p 'y-or-n-p)
7 ;; Don't use messages that you don't rea
8 (setq make-backup-files nil)
9 (setq initial-scratch-message "")
10 (setq inhibit-startup-message t)
13 (column-number-mode 1)
15 ;; Don't let Emacs hurt your ears
18 ;; This is bound to f11 in Emacs 24.4
19 ;; (toggle-frame-fullscreen)
21 '(initial-frame-alist (quote ((fullscreen . maximized)))))
22 ;; Who use the bar to scroll?
23 (when (display-graphic-p)
32 (add-to-list 'package-archives
33 '("melpa" . "http://melpa.milkbox.net/packages/") t)
34 (add-to-list 'package-archives
35 '("marmalade" . "http://marmalade-repo.org/packages/") t)
38 ; fetch the list of packages available
39 (unless package-archive-contents
40 (package-refresh-contents))
42 ;; make sure my list of packages are installed
43 (setq package-list '(rust-mode haskell-mode monokai-theme ghc))
45 ; install the missing packages
46 (dolist (package package-list)
47 (unless (package-installed-p package)
48 (package-install package)))
51 (load-theme 'monokai t)
56 ;; (setq tls-program '("openssl s_client -connect %h:%p -no_ssl2 -ign_eof"))
59 (setq erc-autojoin-channels-alist
60 '((".*\\.freenode.net" "#tahoe-lafs" "#haskell-beginners")
61 (".*\\.oftc.net" "#LeastAuthority")))
65 (setq erc-track-exclude-types '("JOIN" "NICK" "PART" "QUIT" "MODE"
67 "324" "329" "332" "333" "353" "477"))
68 ;; don't show any of this
69 (setq erc-hide-list '("JOIN" "PART" "QUIT" "NICK"))
74 (when (y-or-n-p "Do you want to start IRC? ")
75 (erc-tls :server "irc.freenode.net" :port 6697 :nick "rkrishnan" :full-name "Ramakrishnan Muthukrishnan")
76 (erc-tls :server "irc.oftc.net" :port 6697 :nick "rkrishnan" :full-name "Ramakrishnan Muthukrishnan")))
78 ;; switch to ERC with Ctrl+c e
79 (global-set-key (kbd "C-c e") 'start-erc) ;; ERC
82 (setenv "PATH" (concat "~/.cabal/bin:" (getenv "PATH")))
83 (add-to-list 'exec-path "~/.cabal/bin")
84 (add-hook 'haskell-mode-hook 'haskell-indent-mode)
85 ;; (add-hook 'haskell-mode-hook 'interactive-haskell-mode)
86 ;; (add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
87 ;; (add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
90 (autoload 'ghc-init "ghc" nil t)
91 (autoload 'ghc-debug "ghc" nil t)
92 (add-hook 'haskell-mode-hook (lambda () (ghc-init)))
95 (setq ido-enable-flex-matching t)
96 (setq ido-everywhere t)
99 ;; disable tabs for indentation
100 (setq-default indent-tabs-mode nil)
102 ;; (require 'whitespace)
103 ;; (setq whitespace-style '(face lines-tail))
104 ;; (setq whitespace-line-column 80)
105 ;; (global-whitespace-mode t)
107 ;; ;; show trailing whitespaces
108 ;; (setq-default show-trailing-whitespace t)
109 ;; (setq-default indicate-empty-lines t)
112 (setq c-default-style "k&r"