From 7a8141c5166227cdbf24ea9cbd207e335be37523 Mon Sep 17 00:00:00 2001 From: noa Date: Mon, 11 Nov 2024 12:05:26 +0800 Subject: Use-package bind* ensures ctrlj binding is not overridden --- emacs/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/init.el b/emacs/init.el index a30532f..5cbd521 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -808,7 +808,8 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word." (kill-new (file-name-nondirectory (buffer-file-name))))) (use-package ctrlj - :bind (("" . ctrlj/open-note) + :init (global-unset-key (kbd "C-j")) + :bind* (("" . ctrlj/open-note) ("C-j C-j" . ctrlj/open-note) ("C-j C-n" . ctrlj/new-note) ("C-j C-l" . ctrlj/insert-link-to-note) -- cgit 1.4.1-2-gfad0