aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2021-02-27 15:41:20 -0800
committerGravatar Tom Willemse2021-02-27 15:41:20 -0800
commit869c3073b36ee3dedc0bf58bb750268a95e7262c (patch)
treedb12a2de65206a3ac8cf59bb4c81f9cee3269bfa
parent21bd7564f57b2a2eda61ddfe27cb5e7f9227ed80 (diff)
downloademacs-config-869c3073b36ee3dedc0bf58bb750268a95e7262c.tar.gz
emacs-config-869c3073b36ee3dedc0bf58bb750268a95e7262c.zip
Add ‘insert-char-preview’
This package exposes a function ‘insert-char-preview’ that does the same thing as ‘insert-char’ except that it shows a preview of the character in the completion.
-rw-r--r--oni-core.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/oni-core.el b/oni-core.el
index 156900f..0c2aebc 100644
--- a/oni-core.el
+++ b/oni-core.el
@@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2021.0227.150537
-;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key)
+;; Version: 2021.0227.153915
+;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview)
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -166,6 +166,7 @@ _s_: String list"
(global-set-key (kbd "C-x C-b") 'ibuffer-jump)
(global-set-key (kbd "C-x M-f") 'ffap)
(global-set-key (kbd "M-+") 'mc/mark-next-like-this)
+(global-set-key [remap insert-char] 'insert-char-preview)
(global-set-key [remap move-beginning-of-line] #'oni-core-move-beginning-of-dwim)
(global-set-key [remap move-end-of-line] #'oni-core-move-end-of-dwim)