about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <vincent@spotify.com>2013-07-14T23·06+0200
committerVincent Ambo <vincent@spotify.com>2013-07-14T23·06+0200
commit23806edd3ef23f18d68923e13d5bc9d1a36b3ad4 (patch)
tree91d41370b6782ae2a53e92f72f59521d8c085ee1
parenta5f4b2f479f12eacb4a7e2b52d2c7866cb58bb9c (diff)
emacs: Some bindings and word jumping
-rw-r--r--emacs.d/init-bindings.el6
-rw-r--r--emacs.d/init.el3
2 files changed, 9 insertions, 0 deletions
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")