From 23806edd3ef23f18d68923e13d5bc9d1a36b3ad4 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 15 Jul 2013 01:06:32 +0200 Subject: emacs: Some bindings and word jumping --- emacs.d/init-bindings.el | 6 ++++++ emacs.d/init.el | 3 +++ 2 files changed, 9 insertions(+) diff --git a/emacs.d/init-bindings.el b/emacs.d/init-bindings.el index 57586101f2b1..d60c1cbc037b 100644 --- a/emacs.d/init-bindings.el +++ b/emacs.d/init-bindings.el @@ -15,6 +15,12 @@ ;; Jump to a definition in the current file. (Protip: this is awesome.) (global-set-key (kbd "C-x C-i") 'imenu) +;; Ace-jump-mode +(global-set-key (kbd "M-j") 'ace-jump-char-mode) + +;; Jump to next occurence of char +(global-set-key (kbd "M-m") 'iy-go-to-char) + ;; Window switching. (C-x o goes to the next window) (windmove-default-keybindings) ;; Shift+direction diff --git a/emacs.d/init.el b/emacs.d/init.el index a80eb8133920..827eb859b24c 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -48,6 +48,9 @@ (custom-download-script "https://raw.github.com/dimitri/switch-window/master/switch-window.el" "switch-window.el") +(custom-download-script "https://raw.github.com/doitian/iy-go-to-char/master/iy-go-to-char.el" + "goto-char.el") + ;; NYAN CAT! (custom-clone-git "https://github.com/TeMPOraL/nyan-mode" "nyan-mode") (load "~/.emacs.d/nyan-mode/nyan-mode.el") -- cgit 1.4.1