From cc87261421ebcb1dc87c8380347e9260a69c998d Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Tue, 3 Oct 2023 22:41:30 +1100 Subject: [emacs] [gdb] Some small changes - my-mark-backward-up-list: like backward-up-list, but also mark the sexp - my-kill-sexp-or-comment: kill the next sexp or comment, replacing kill-sexp - my-mark-sexp-or-comment: mark the next sexp or comment, replacing mark-sexp - my-magit-ignore-other-worktrees: a filter-args advice to add --ignore-other-worktrees to magit-checkout --- emacs/.emacs.d/init/ycp-editing.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'emacs/.emacs.d/init/ycp-editing.el') diff --git a/emacs/.emacs.d/init/ycp-editing.el b/emacs/.emacs.d/init/ycp-editing.el index e469097..cdbe09d 100644 --- a/emacs/.emacs.d/init/ycp-editing.el +++ b/emacs/.emacs.d/init/ycp-editing.el @@ -42,6 +42,8 @@ ;; don't interpret C-m as RET (define-key input-decode-map [?\C-m] [C-m]) (define-key input-decode-map [?\C-i] [C-i]) +;; fixme: the line below does not work +;; (define-key input-decode-map [?\C-M-m] [C-M-m]) (setq save-place-file (locate-user-emacs-file "saveplace")) (my-configure @@ -89,6 +91,8 @@ "M-SPC" #'cycle-spacing "M-z" #'zap-up-to-char ; NOT `zap-to-char' "" #'backward-kill-sexp + "C-M-/" #'my-mark-backward-up-list + "C-M-k" #'my-kill-sexp-or-comment ) (electric-pair-mode) (my-add-hooks #'my-non-special-modes-setup '(text-mode-hook prog-mode-hook)) -- cgit v1.2.3