Created
February 26, 2015 21:35
-
-
Save roobie/a7e0698d722cf12c57d2 to your computer and use it in GitHub Desktop.
init.el
This file contains 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
;; Common Lisp capabilities are nice | |
(require 'cl) | |
;; Nice programming font, if supported | |
(set-frame-font "DejaVu Sans Mono-11") | |
(setq inhibit-startup-message t) ;; no splash screen | |
(global-linum-mode 1) ;; always show line numbers | |
;; highligh matching parens | |
(show-paren-mode 1) | |
;; no menu bar please. | |
(menu-bar-mode -1) | |
;; no blinking cursor | |
(blink-cursor-mode 0) | |
;; remove tool bar | |
(when (fboundp 'tool-bar-mode) | |
(tool-bar-mode -1)) | |
;; remove scroll bar | |
(when (fboundp 'scroll-bar-mode) | |
(scroll-bar-mode -1)) | |
;;; | |
;;; PACKAGE conf | |
(require 'package) | |
;; use melpa | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.milkbox.net/packages/")) | |
(package-initialize) | |
(when (not package-archive-contents) | |
(package-refresh-contents)) | |
(defvar my-packages | |
'(niflheim-theme | |
helm | |
whole-line-or-region | |
company)) | |
(dolist (p my-packages) | |
(when (not (package-installed-p p)) | |
(package-install p))) | |
;;; | |
;;; COMPANY | |
;; Always enable company-mode | |
(add-hook 'after-init-hook 'global-company-mode) | |
;; complete immediately | |
(setq company-idle-delay 0) | |
;; nice theme. | |
(load-theme 'niflheim t) | |
;;; | |
;;; HELM | |
(require 'helm-config) | |
(global-set-key (kbd "M-x") 'helm-M-x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment