From 6645cc491781f9ee49fa80e28ecd3d14849f9844 Mon Sep 17 00:00:00 2001
From: noa
Date: Fri, 25 Oct 2024 15:04:09 +0800
Subject: Put ctrlj bindings in use-package declaration

---
 emacs/init.el | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

(limited to 'emacs')

diff --git a/emacs/init.el b/emacs/init.el
index a717f22..d8ca11e 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -791,14 +791,14 @@ The misspelled word is taken from OVERLAY.  WORD is the corrected word."
   (when (buffer-file-name)
     (kill-new (file-name-nondirectory (buffer-file-name)))))
 
-(use-package ctrlj)
-(global-unset-key (kbd "C-j"))
-(global-set-key (kbd "C-j C-j") #'ctrlj/open-note)
-(global-set-key (kbd "C-j C-n") #'ctrlj/new-note)
-(global-set-key (kbd "C-j C-l") #'ctrlj/insert-link-to-note)
-(global-set-key (kbd "C-j C-d") #'ctrlj/open-todays-diary)
-(global-set-key (kbd "C-j C-a") #'ctrlj/view-agenda)
-(global-set-key (kbd "C-j C-o") #'ctrlj/jump-to-other-related-note)
+(use-package ctrlj
+  :bind (("<menu>" . 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)
+         ("C-j C-d" . ctrlj/open-todays-diary)
+         ("C-j C-a" . ctrlj/view-agenda)
+         ("C-j C-o" . ctrlj/jump-to-other-related-note)))
 
 (defun noa/consult-rg-notes ()
   (interactive)
-- 
cgit 1.4.1-2-gfad0