From 34a9453128f7233c90b5190123ad86f471c93a4a Mon Sep 17 00:00:00 2001 From: Eason0210 Date: Sun, 22 Dec 2024 10:33:45 +0800 Subject: [PATCH] Assimilate puni f430f5b --- .gitmodules | 3 +++ init.el | 12 ++++++++++++ lib/puni | 1 + 3 files changed, 16 insertions(+) create mode 160000 lib/puni diff --git a/.gitmodules b/.gitmodules index 0f7ee71..48f4a9b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -177,6 +177,9 @@ [submodule "pinyinlib"] path = lib/pinyinlib url = https://github.com/cute-jumper/pinyinlib.el +[submodule "puni"] + path = lib/puni + url = https://github.com/AmaiKinono/puni [submodule "pyvenv"] path = lib/pyvenv url = https://github.com/jorgenschaefer/pyvenv diff --git a/init.el b/init.el index bd8ca5c..fa1fb20 100644 --- a/init.el +++ b/init.el @@ -855,6 +855,18 @@ typical word processor." (dolist (binding '("C-" "C-" "M-s" "M-?")) (define-key paredit-mode-map (read-kbd-macro binding) nil))) +(use-package puni + :hook ((prog-mode . puni-mode) + (emacs-lisp-mode . (lambda () (puni-mode -1)))) + :bind (:map puni-mode-map + ("M-(" . puni-wrap-round) + ("C-(" . puni-slurp-backward) + ("C-)" . puni-slurp-forward) + ("C-}" . puni-barf-forward) + ("C-{" . puni-barf-backward) + ("M-" . puni-splice-killing-backward) + ("C-w" . nil))) + (use-package aggressive-indent :hook (emacs-lisp-mode . aggressive-indent-mode)) diff --git a/lib/puni b/lib/puni new file mode 160000 index 0000000..f430f5b --- /dev/null +++ b/lib/puni @@ -0,0 +1 @@ +Subproject commit f430f5b0a14c608176e3376058eb380ab0824621