From 8bda61c0661b582b90f188b0b0e12e7667699eb5 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Tue, 2 Jun 2015 20:16:38 +0800 Subject: [PATCH] emacs: add jekyll-mode, enable winner-mode --- emacs.d/config/init-key-binding.el | 6 ------ emacs.d/config/my-packages.el | 2 ++ emacs.d/init.el | 10 ++++++++++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/emacs.d/config/init-key-binding.el b/emacs.d/config/init-key-binding.el index 9e030b4..83d91c1 100644 --- a/emacs.d/config/init-key-binding.el +++ b/emacs.d/config/init-key-binding.el @@ -38,12 +38,6 @@ - -;(global-set-key (kbd "M-g M-v") 'split-window-right) -;(global-set-key (kbd "M-g M-s") 'split-window-below) -;(global-set-key (kbd "M-g M-o") 'delete-other-windows) - - ;(global-set-key (kbd "M-g M-w") 'other-window) ;;---------------------------------------------------------------------------- diff --git a/emacs.d/config/my-packages.el b/emacs.d/config/my-packages.el index c4f36e2..ddb2759 100644 --- a/emacs.d/config/my-packages.el +++ b/emacs.d/config/my-packages.el @@ -49,6 +49,8 @@ flymake-cursor google-c-style recentf-ext + linum-relative + jekyll-modes ) "a list of packages to ensure are installed at launch.") (require 'cl) diff --git a/emacs.d/init.el b/emacs.d/init.el index 88b081b..2c16cd2 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -135,3 +135,13 @@ (require 'recentf-ext) (require 'init-key-binding) + +(require 'linum-relative) +(winner-mode 1) + +(global-set-key (kbd "C-c C-l") 'winner-redo) +(global-set-key (kbd "C-c C-h") 'winner-undo) + + + +;(require 'minibuffer-tray) -- 2.11.0