aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-12-01 18:36:22 +0100
committerAdrian Kummerlaender2014-12-01 18:36:22 +0100
commit8050551b887af43d291d9064b2132afb2718b06c (patch)
tree8ef8eea75550e502bd6b83be206778e72cf2acbd
parente1a936e706844ee10b2ae935e34b987c7e25d505 (diff)
downloaddotfiles-8050551b887af43d291d9064b2132afb2718b06c.tar
dotfiles-8050551b887af43d291d9064b2132afb2718b06c.tar.gz
dotfiles-8050551b887af43d291d9064b2132afb2718b06c.tar.bz2
dotfiles-8050551b887af43d291d9064b2132afb2718b06c.tar.lz
dotfiles-8050551b887af43d291d9064b2132afb2718b06c.tar.xz
dotfiles-8050551b887af43d291d9064b2132afb2718b06c.tar.zst
dotfiles-8050551b887af43d291d9064b2132afb2718b06c.zip
Added basic Evil-based Emacs configuration
-rw-r--r--emacs/.emacs.d/init.el27
1 files changed, 27 insertions, 0 deletions
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-<left>") 'evil-window-left)
+(define-key evil-normal-state-map (kbd "M-<down>") 'evil-window-down)
+(define-key evil-normal-state-map (kbd "M-<up>") 'evil-window-up)
+(define-key evil-normal-state-map (kbd "M-<right>") 'evil-window-right)