summary refs log tree commit diff
path: root/emacs/init.el
diff options
context:
space:
mode:
authornoa2024-10-25 15:04:09 +0800
committernoa2024-10-25 15:04:09 +0800
commit6645cc491781f9ee49fa80e28ecd3d14849f9844 (patch)
treed9d31f521f4be539ff5dafe8c3d7a6a1410edb4f /emacs/init.el
parent572b7e1f4bf6d26758ee922d61cdb8f84de29011 (diff)
Put ctrlj bindings in use-package declaration
Diffstat (limited to 'emacs/init.el')
-rw-r--r--emacs/init.el16
1 files changed, 8 insertions, 8 deletions
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)