about summary refs log tree commit diff
path: root/init.el
diff options
context:
space:
mode:
authorVincent Ambo <vincent@spotify.com>2013-07-04T22·28+0200
committerVincent Ambo <vincent@spotify.com>2013-07-04T22·28+0200
commit62f609b47ff4195901b902fec0ea2365f9b3feb5 (patch)
treec62c795115189aba23f5ba42d5225898fda3ac6b /init.el
parenta5a7db8f1b541a78613fe0696887151e3564b0e3 (diff)
emacs: Swedish locales & ace-jump
Diffstat (limited to 'init.el')
-rw-r--r--init.el26
1 files changed, 25 insertions, 1 deletions
diff --git a/init.el b/init.el
index 5caa84d117c3..2fb3d8cf7788 100644
--- a/init.el
+++ b/init.el
@@ -16,7 +16,8 @@
                   color-theme-solarized
                   projectile
                   rainbow-delimiters
-                  nrepl)
+                  nrepl
+                  ace-jump-mode)
   "A list of packages to install at launch.")
 
 (dolist (p my-pkgs)
@@ -49,6 +50,9 @@
 
 ;; Other general settings
 
+;; Swedish!
+(set-language-environment 'Swedish)
+
 ;; Enable mouse support on OS X
 (unless window-system
   (require 'mouse)
@@ -71,6 +75,26 @@
 (windmove-default-keybindings 'meta)
 (setq windmove-wrap-around t)
 
+;; Load ace-jump-mode
+(autoload
+  'ace-jump-mode
+  "ace-jump-mode"
+  "Emacs quick move minor mode"
+  t)
+
+(define-key global-map [?] 'ace-jump-mode)
+
+;; Quick jump back
+(autoload
+  'ace-jump-mode-pop-mark
+  "ace-jump-mode"
+  "Ace jump back:-)"
+  t)
+
+(eval-after-load "ace-jump-mode"
+  '(ace-jump-mode-enable-mark-sync))
+(define-key global-map (kbd "C-x ö") 'ace-jump-mode-pop-mark)
+
 ;; Configure markdown-mode
 (autoload 'markdown-mode "markdown-mode"
   "Major mode for editing Markdown files" t)