From ca9dc4676c802a4a8acc9c049a50efb050bd0b93 Mon Sep 17 00:00:00 2001 From: Tu Do Date: Thu, 29 May 2014 11:04:44 +0700 Subject: [PATCH] Update document and operate-on-number key bindings Signed-off-by: Tu Do --- README.md | 2 +- core/prelude-editor.el | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 41db181..df2d158 100644 --- a/README.md +++ b/README.md @@ -262,6 +262,7 @@ Keybinding | Description C-x M-m | Start your default shell. C-x C-m | Alias for `M-x`. C-h A | Run `apropos` (search in all Emacs symbols). +C-h C-m | Display key bindings of current major mode and descriptions of every binding. M-/ | Run `hippie-expand` (a replacement for the default `dabbrev-expand`). C-x C-b | Open `ibuffer` (a replacement for the default `buffer-list`). F11 | Make the window full screen. @@ -300,7 +301,6 @@ Keybinding | Description C-c h | Open Helm (available if you've enabled the `prelude-helm` module). C-c I | Open user's init file. C-c S | Open shell's init file. -C-h C-m | Display key bindings of current major mode and descriptions of every binding. C-c . + | Increment integer at point. Default is +1. C-c . - | Decrement integer at point. Default is -1. C-c . * | Multiply integer at point. Default is *2. diff --git a/core/prelude-editor.el b/core/prelude-editor.el index 3c31e31..809e7d5 100644 --- a/core/prelude-editor.el +++ b/core/prelude-editor.el @@ -383,16 +383,19 @@ indent yanked text (with prefix arg don't indent)." (global-set-key [remap kill-ring-save] 'easy-kill) (global-set-key [remap mark-sexp] 'easy-mark) -;; +;; operate-on-number (require 'operate-on-number) (smartrep-define-key global-map "C-c ." '(("+" . apply-operation-to-number-at-point) ("-" . apply-operation-to-number-at-point) ("*" . apply-operation-to-number-at-point) ("/" . apply-operation-to-number-at-point) + ("\\" . apply-operation-to-number-at-point) ("^" . apply-operation-to-number-at-point) ("<" . apply-operation-to-number-at-point) (">" . apply-operation-to-number-at-point) + ("#" . apply-operation-to-number-at-point) + ("%" . apply-operation-to-number-at-point) ("'" . operate-on-number-at-point))) (provide 'prelude-editor)