Skip to content

Commit

Permalink
Assimilate puni f430f5b
Browse files Browse the repository at this point in the history
  • Loading branch information
Eason0210 committed Dec 22, 2024
1 parent 7056cec commit 34a9453
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,18 @@ typical word processor."
(dolist (binding '("C-<left>" "C-<right>" "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-<up>" . puni-splice-killing-backward)
("C-w" . nil)))

(use-package aggressive-indent
:hook (emacs-lisp-mode . aggressive-indent-mode))

Expand Down
1 change: 1 addition & 0 deletions lib/puni
Submodule puni added at f430f5

0 comments on commit 34a9453

Please sign in to comment.