Rewrite ansi-term `defadvice` with `define-advice`

Only two instances of `defadvice` remaining, will rewrite those somewhen.
This commit is contained in:
Daniel - 2023-07-01 17:31:22 +02:00
parent d8a41ca0cf
commit 536d3b37ba
Signed by: dbo
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 3 additions and 1 deletions

View File

@ -2633,7 +2633,9 @@ With given ARG, display files in `db/important-document-path."
;; we need to set keys starting with C-x after `ansi-term' has been
;; called, as it resets the escape character to C-x.
(defadvice ansi-term (after ansi-term-set-keys activate)
(define-advice ansi-term (:after
(&rest _)
db/ansi-term--unbind-annoying-keys)
(unbind-key "C-x C-j" term-raw-map)
(unbind-key "C-x g" term-raw-map))