74 lines
2.4 KiB
EmacsLisp
74 lines
2.4 KiB
EmacsLisp
;;; init-edit.el --- -*- lexical-binding: t -*-
|
|
;;
|
|
;; Filename: init-edit.el
|
|
;; Description: Initialize Editing Configuration
|
|
;; Author: Mingde (Matthew) Zeng
|
|
;; Copyright (C) 2019 Mingde (Matthew) Zeng
|
|
;; Created: Thu Mar 28 13:25:24 2019 (-0400)
|
|
;; Version: 2.0.0
|
|
;; Last-Updated: Tue Dec 24 11:50:24 2019 (-0500)
|
|
;; By: Mingde (Matthew) Zeng
|
|
;; URL: https://github.com/MatthewZMD/.emacs.d
|
|
;; Keywords: M-EMACS .emacs.d iedit
|
|
;; Compatibility: emacs-version >= 26.1
|
|
;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;
|
|
;;; Commentary:
|
|
;;
|
|
;; This initializes iedit, awesome-pair, delete-block
|
|
;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;
|
|
;; This program is free software: you can redistribute it and/or modify
|
|
;; it under the terms of the GNU General Public License as published by
|
|
;; the Free Software Foundation, either version 3 of the License, or (at
|
|
;; your option) any later version.
|
|
;;
|
|
;; This program is distributed in the hope that it will be useful, but
|
|
;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
;; General Public License for more details.
|
|
;;
|
|
;; You should have received a copy of the GNU General Public License
|
|
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
|
|
;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;
|
|
;;; Code:
|
|
(eval-when-compile
|
|
(require 'init-global-config))
|
|
|
|
;; IEditPac
|
|
(use-package iedit
|
|
:bind ("C-z ," . iedit-mode)
|
|
:diminish)
|
|
;; -IEditPac
|
|
|
|
;; AwesomePairPac
|
|
(use-package awesome-pair
|
|
:load-path (lambda () (expand-file-name "site-elisp/awesome-pair" user-emacs-directory))
|
|
:bind
|
|
(:map prog-mode-map
|
|
(("M-D" . awesome-pair-kill)
|
|
("SPC" . awesome-pair-space)
|
|
("=" . awesome-pair-equal)
|
|
("M-F" . awesome-pair-jump-right)
|
|
("M-B" . awesome-pair-jump-left)))
|
|
:hook (prog-mode . awesome-pair-mode))
|
|
;; -AwesomePairPac
|
|
|
|
;; DeleteBlockPac
|
|
(use-package delete-block
|
|
:load-path (lambda () (expand-file-name "site-elisp/delete-block" user-emacs-directory))
|
|
:bind
|
|
(("M-d" . delete-block-forward)
|
|
("C-<backspace>" . delete-block-backward)
|
|
("M-<backspace>" . delete-block-backward)
|
|
("M-DEL" . delete-block-backward)))
|
|
;; -DeleteBlockPac
|
|
|
|
(provide 'init-edit)
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;; init-edit.el ends here
|