about summary refs log tree commit diff
path: root/init
diff options
context:
space:
mode:
authorVincent Ambo <vincent@kivra.com>2015-02-20T10·45+0100
committerVincent Ambo <vincent@kivra.com>2015-02-20T10·45+0100
commit4cca819886657fe6300435ed97296a9848995cc8 (patch)
treebf76d94871f61fc09704ef4f5a695daf83c5988b /init
parentd9bd9ef50c19a6b918a490b429d6571685446c22 (diff)
Minor changes
* use ace-jump-line-mode for quick line jumping
* column-number-mode enabled by default
Diffstat (limited to 'init')
-rw-r--r--init/bindings.el6
-rw-r--r--init/functions.el7
-rw-r--r--init/settings.el3
3 files changed, 13 insertions, 3 deletions
diff --git a/init/bindings.el b/init/bindings.el
index c62daad544..e6128aaa78 100644
--- a/init/bindings.el
+++ b/init/bindings.el
@@ -31,7 +31,7 @@
 (global-set-key (kbd "C-x M") (lambda () (interactive) (eshell t)))
 
 ;; Eval sexp and replace it with result
-(global-set-key (kbd "C-c e") 'esk-eval-and-replace)
+(global-set-key (kbd "C-c e") 'replace-last-sexp)
 
 ;; Start a regular shell if you prefer that.
 (global-set-key (kbd "C-x C-m") 'shell)
@@ -45,8 +45,8 @@
 ;; Add a fullscreen toggle - TODO: reenable in next Emacs release
 ; (global-set-key (kbd "M-RET") 'toggle-frame-fullscreen)
 
-;; Replace standard goto-line with goto-line-with-feedback
-(global-set-key (kbd "M-g g") 'goto-line-with-feedback)
+;; Replace standard goto-line with ace-jump-line-mode
+(global-set-key (kbd "M-g g") 'ace-jump-line-mode)
 
 ;; Goodness from @magnars
 ;; I don't need to kill emacs that easily
diff --git a/init/functions.el b/init/functions.el
index e26e1f1bea..a0bf51a9e0 100644
--- a/init/functions.el
+++ b/init/functions.el
@@ -99,4 +99,11 @@ Including indent-buffer, which should not be called automatically on save."
       (find-file (concat "/sudo:root@localhost:" (ido-read-file-name "File: ")))
     (find-alternate-file (concat "/sudo:root@localhost:" buffer-file-name))))
 
+;; Evaluate sexp and replace it with result
+(defun replace-last-sexp ()
+    (interactive)
+    (let ((value (eval (preceding-sexp))))
+      (kill-sexp -1)
+      (insert (format "%S" value))))
+
 (provide 'functions)
diff --git a/init/settings.el b/init/settings.el
index 8d1b7fbace..6c81536df1 100644
--- a/init/settings.el
+++ b/init/settings.el
@@ -25,6 +25,9 @@
 
 (setq uniquify-buffer-name-style 'forward)
 
+;; Give me column numbers
+(column-number-mode t)
+
 ;;; Code:
 
 (add-to-list 'exec-path "/usr/local/bin")