From 223ca119770743dc5ea5bd0b6e0c0c9f6a41e1ee Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Mon, 9 Oct 2017 22:00:18 +0200 Subject: [PATCH] Use avy --- emacs/.emacs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/emacs/.emacs b/emacs/.emacs index 3f97325..d907433 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -59,7 +59,7 @@ '(menu-bar-mode nil) '(package-selected-packages (quote - (org-bullets counsel powerline-evil powerline origami projectile terminal-here shell-pop swiper neotree centered-cursor-mode ivy avy heroku-theme auto-complete use-package yasnippet evil-surround org evil-magit magit makefile-runner evil))) + (evil-org org-bullets counsel powerline-evil powerline origami projectile terminal-here shell-pop swiper neotree centered-cursor-mode ivy avy heroku-theme auto-complete use-package yasnippet evil-surround org evil-magit magit makefile-runner evil))) '(scroll-bar-mode nil) '(shell-pop-shell-type (quote @@ -313,10 +313,11 @@ (use-package avy :ensure t :demand t - :disabled - :bind ("C-s" . avy-goto-word-0) - :config (progn - (setq avy-keys '(?a ?s ?d ?f ?g ?q ?w ?e ?r ?t ?y ?x ?c ?v ?z ?u ?i ?o ?p ?h ?j ?k ?l ?b ?n ?m)))) + :bind ("C-c f" . avy-goto-line) + :config + (setq avy-keys '(?w ?a ?s ?d ?q ?e)) + (dolist (face avy-lead-faces) + (set-face-attribute face nil :background "gray28" :foreground "light blue" :weight 'bold))) ;; Magit (use-package magit @@ -466,6 +467,9 @@ (global-set-key (kbd "C-c C-d") 'time-german) +(global-set-key (kbd "") 'backward-paragraph) +(global-set-key (kbd "") 'forward-paragraph) + ;; Comment fun ;(defun extend-comment ()