From 8050551b887af43d291d9064b2132afb2718b06c Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 1 Dec 2014 18:36:22 +0100 Subject: Added basic Evil-based Emacs configuration --- emacs/.emacs.d/init.el | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 emacs/.emacs.d/init.el diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el new file mode 100644 index 0000000..0ef52be --- /dev/null +++ b/emacs/.emacs.d/init.el @@ -0,0 +1,27 @@ +(setq package-archives '( + ("melpa" . "http://melpa.milkbox.net/packages/") + ("org" . "http://orgmode.org/elpa/") + ("gnu" . "http://elpa.gnu.org/packages/") +)) + +(require 'package) +(package-initialize) + +(require 'evil) +(evil-mode 1) + +(load-theme 'molokai t) +(set-frame-font "Source Code Pro-9") + +(if window-system + (progn + (menu-bar-mode -1) + (tool-bar-mode -1) + (scroll-bar-mode -1))) + +(global-hl-line-mode 1) + +(define-key evil-normal-state-map (kbd "M-") 'evil-window-left) +(define-key evil-normal-state-map (kbd "M-") 'evil-window-down) +(define-key evil-normal-state-map (kbd "M-") 'evil-window-up) +(define-key evil-normal-state-map (kbd "M-") 'evil-window-right) -- cgit v1.2.3