From 869c3073b36ee3dedc0bf58bb750268a95e7262c Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 27 Feb 2021 15:41:20 -0800 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=98insert-char-preview=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- oni-core.el | 5 +++-- 1 file 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 ;; 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)