]> git.rkrishnan.org Git - .emacs.d.git/commitdiff
New packages based config
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Wed, 1 Oct 2014 14:35:02 +0000 (20:05 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Wed, 1 Oct 2014 14:35:02 +0000 (20:05 +0530)
init.el [new file with mode: 0644]

diff --git a/init.el b/init.el
new file mode 100644 (file)
index 0000000..f56783e
--- /dev/null
+++ b/init.el
@@ -0,0 +1,42 @@
+;; Prevent the cursor from blinking
+(blink-cursor-mode 0)
+
+;; Don't use messages that you don't rea
+(setq make-backup-files nil)
+(setq initial-scratch-message "")
+(setq inhibit-startup-message t)
+;; Don't let Emacs hurt your ears
+(setq visible-bell t)
+
+;; This is bound to f11 in Emacs 24.4
+;; (toggle-frame-fullscreen) 
+(custom-set-variables
+ '(initial-frame-alist (quote ((fullscreen . maximized)))))
+;; Who use the bar to scroll?
+(scroll-bar-mode 0)
+
+(tool-bar-mode 0)
+(menu-bar-mode 0)
+
+; my-packages.el
+(require 'package)
+(add-to-list 'package-archives
+             '("melpa" . "http://melpa.milkbox.net/packages/") t)
+(add-to-list 'package-archives
+             '("marmalade" . "http://marmalade-repo.org/packages/") t)
+(package-initialize)
+
+; fetch the list of packages available 
+(unless package-archive-contents
+  (package-refresh-contents))
+
+;; make sure my list of packages are installed
+(setq package-list '(rust-mode haskell-mode monokai-theme racket-mode))
+
+; install the missing packages
+(dolist (package package-list)
+  (unless (package-installed-p package)
+    (package-install package)))
+
+;; monokai
+(load-theme 'monokai t)