From a0dbc5a005077c5905948076a39b721aac129545 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Mon, 6 Jan 2025 09:27:23 +1100 Subject: [emacs] Add functions in ledger mode to move transactions up and down --- emacs/.emacs.d/init/ycp-markup.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'emacs/.emacs.d/init/ycp-markup.el') diff --git a/emacs/.emacs.d/init/ycp-markup.el b/emacs/.emacs.d/init/ycp-markup.el index 2225621..fcb98ff 100644 --- a/emacs/.emacs.d/init/ycp-markup.el +++ b/emacs/.emacs.d/init/ycp-markup.el @@ -83,7 +83,11 @@ (setq-local completion-cycle-threshold t) (setq-local ledger-complete-in-steps t) (setq-local company-mode nil))) - (setq ledger-binary-path "hledger")) + (setq ledger-binary-path "hledger") + (require 'my-ledger) + (my-keybind ledger-mode-map + "M-" #'my-ledger-move-xact-down + "M-" #'my-ledger-move-xact-up)) ;;; todo: open epub in emacs client with nov (my-package nov -- cgit v1.2.3