Update document and operate-on-number key bindings
Signed-off-by: Tu Do <tuhdo1710@gmail.com>
This commit is contained in:
parent
b998a8bd47
commit
ca9dc4676c
2 changed files with 5 additions and 2 deletions
|
@ -262,6 +262,7 @@ Keybinding | Description
|
|||
<kbd>C-x M-m</kbd> | Start your default shell.
|
||||
<kbd>C-x C-m</kbd> | Alias for `M-x`.
|
||||
<kbd>C-h A</kbd> | Run `apropos` (search in all Emacs symbols).
|
||||
<kbd>C-h C-m</kbd> | Display key bindings of current major mode and descriptions of every binding.
|
||||
<kbd>M-/</kbd> | Run `hippie-expand` (a replacement for the default `dabbrev-expand`).
|
||||
<kbd>C-x C-b</kbd> | Open `ibuffer` (a replacement for the default `buffer-list`).
|
||||
<kbd>F11</kbd> | Make the window full screen.
|
||||
|
@ -300,7 +301,6 @@ Keybinding | Description
|
|||
<kbd>C-c h</kbd> | Open Helm (available if you've enabled the `prelude-helm` module).
|
||||
<kbd>C-c I</kbd> | Open user's init file.
|
||||
<kbd>C-c S</kbd> | Open shell's init file.
|
||||
<kbd>C-h C-m</kbd> | Display key bindings of current major mode and descriptions of every binding.
|
||||
<kbd>C-c . +</kbd> | Increment integer at point. Default is +1.
|
||||
<kbd>C-c . -</kbd> | Decrement integer at point. Default is -1.
|
||||
<kbd>C-c . *</kbd> | Multiply integer at point. Default is *2.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue