From f5a111de58af93660603c639043a514a4aeaa968 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Sun, 12 Jan 2025 19:56:18 +1100 Subject: [emacs] Add compilation mode support for ledger mode --- emacs/.emacs.d/init/ycp-markup.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'emacs/.emacs.d/init') diff --git a/emacs/.emacs.d/init/ycp-markup.el b/emacs/.emacs.d/init/ycp-markup.el index 548461d..f3d92d0 100644 --- a/emacs/.emacs.d/init/ycp-markup.el +++ b/emacs/.emacs.d/init/ycp-markup.el @@ -87,7 +87,12 @@ (require 'my-ledger) (my-keybind ledger-mode-map "M-" #'my-ledger-move-xact-down - "M-" #'my-ledger-move-xact-up)) + "M-" #'my-ledger-move-xact-up + "C-c C-c" #'compile) + (add-to-list 'compilation-error-regexp-alist 'ledger) + (add-to-list 'compilation-error-regexp-alist-alist my-ledger-compilation-error-re) + (add-hook 'ledger-mode-hook 'my-ledger-set-compile-command) + ) ;;; todo: open epub in emacs client with nov (my-package nov -- cgit v1.2.3