dotfiles

My opinionated dotfiles
git clone git://git.erethon.com/dotfiles
Log | Files | Refs

commit 7c6c6ff86940b25d771d336279d065527b59d746
parent 2eec987ad5056bef44d2675e6c588dc29eb152a6
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Tue, 12 Apr 2016 03:33:47 +0300

Init .emacs file

Diffstat:
.emacs | 41+++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+), 0 deletions(-)

diff --git a/.emacs b/.emacs @@ -0,0 +1,41 @@ +(menu-bar-mode -1) + +(setq scroll-step 1 + scroll-conservatively 10000) + +(require 'package) +(package-initialize) + +(require 'evil) +(evil-mode 1) +(define-key evil-normal-state-map (kbd "RET") 'org-return) +(define-key evil-normal-state-map (kbd "C-h") 'evil-window-left) +(define-key evil-normal-state-map (kbd "C-l") 'evil-window-right) +(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 "SPC") 'scroll-up-command) + + +(setq org-return-follows-link t) +(require 'org) +(setq org-log-done t) + +;; Adds a vim-like <leader> key +(add-to-list 'load-path "~/.emacs.d/plugins/evil-leader") +(require 'evil-leader) + +;; Org-mode bindings +(define-key evil-normal-state-map "t" 'org-todo) +(define-key evil-normal-state-map (kbd "TAB") 'org-cycle) + +(evil-leader/set-key-for-mode 'org-mode + "n" 'org-next-link + "N" 'org-previous-link + "a" 'org-agenda + "t" 'org-show-todo-tree) + +(global-evil-leader-mode) +(evil-leader/set-leader ";") + +;; Prompt for y/no instead of yes/no +(fset 'yes-or-no-p 'y-or-n-p)