dotfiles

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

commit 744f9e5d49645b1667c8316d39c4a3b5306376da
parent 3dfdd1535ff750444ad94dafc0c05234a4a12b5e
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Tue,  4 Apr 2017 02:19:53 +0300

emacs: Add settings for evil-leader

Diffstat:
.emacs.d/configuration.org | 23++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/.emacs.d/configuration.org b/.emacs.d/configuration.org @@ -17,6 +17,11 @@ (setq org-ellipsis " ↷") #+END_SRC +** Add a whitespace in linum-mode +#+BEGIN_SRC emacs-lisp + (setq linum-format "%d ") +#+END_SRC + * Packages ** Initialize packages #+BEGIN_SRC emacs-lisp @@ -42,6 +47,22 @@ (define-key evil-normal-state-map (kbd "0") 'back-to-indentation) #+END_SRC +** Evil-Leader +#+BEGIN_SRC emacs-lisp +(require 'evil-leader) +(global-evil-leader-mode) +(evil-leader/set-leader ";") +(evil-leader/set-key + "a" 'org-agenda + "c" 'org-capture + "k" 'kill-buffer + "l" 'org-insert-link + "0" 'delete-window + "1" 'split-window-horizontally + "2" 'split-window-vertically + "#" 'linum-mode) +#+END_SRC + * org-mode ** List of files to parse for org-agenda #+BEGIN_SRC emacs-lisp @@ -139,5 +160,5 @@ *** Python **** Tab width #+BEGIN_SRC emacs-lisp - (setq python-indent 2) + (setq python-indent 4) #+END_SRC