aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2025-01-06 09:27:23 +1100
committerYuchen Pei <id@ypei.org>2025-01-06 09:27:23 +1100
commita0dbc5a005077c5905948076a39b721aac129545 (patch)
tree54f9bb41f88658be45984d4b252066e88df8fd26 /emacs/.emacs.d/init
parent5ec3901c0ce21f4ff8860a31a7f40a4681443e85 (diff)
[emacs] Add functions in ledger mode to move transactions up and down
Diffstat (limited to 'emacs/.emacs.d/init')
-rw-r--r--emacs/.emacs.d/init/ycp-markup.el6
1 files changed, 5 insertions, 1 deletions
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-<down>" #'my-ledger-move-xact-down
+ "M-<up>" #'my-ledger-move-xact-up))
;;; todo: open epub in emacs client with nov
(my-package nov