Skip to content

Instantly share code, notes, and snippets.

@tiborsimon
Last active March 11, 2016 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tiborsimon/f28b278eb66b981b5034 to your computer and use it in GitHub Desktop.
Save tiborsimon/f28b278eb66b981b5034 to your computer and use it in GitHub Desktop.
Temporary emacs config
;; Adding package manager with a few default packages
(require 'package)
;; packages
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("org" . "http://orgmode.org/elpa/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa-stable" . "http://melpa-stable.milkbox.net/packages/")))
(package-initialize)
(require 'evil)
(require 'monokai-theme)
(require 'powerline-evil)
;; EVIL-mode config
(require 'evil)
(evil-mode t)
;; Theme config
(load-theme 'monokai t)
;; GUI customizations
(tool-bar-mode -1)
(scroll-bar-mode -1)
;; EVIL key binding
;; http://stackoverflow.com/a/23580093/1565331
(eval-after-load "evil"
'(progn
(define-key evil-normal-state-map (kbd "C-h") 'evil-window-left)
(define-key evil-normal-state-map (kbd "C-j") 'evil-window-down)
(define-key evil-normal-state-map (kbd "C-k") 'evil-window-up)
(define-key evil-normal-state-map (kbd "C-l") 'evil-window-right)))
;; Powerline
(require 'powerline-evil)
(powerline-evil-vim-color-theme)
(display-time-mode t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment