[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-args 0ab683418c 17/27: Modified autoload structure fo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-args 0ab683418c 17/27: Modified autoload structure for inclusion with MELPA. |
Date: |
Wed, 2 Feb 2022 20:58:12 -0500 (EST) |
branch: elpa/evil-args
commit 0ab683418c1fbc2574efc21077ffec205aad89f2
Author: wcsmith <wconnorsmith@gmail.com>
Commit: wcsmith <wconnorsmith@gmail.com>
Modified autoload structure for inclusion with MELPA.
---
README.md | 13 +++++--------
evil-args.el | 48 ++++++++++++++++++++++--------------------------
2 files changed, 27 insertions(+), 34 deletions(-)
diff --git a/README.md b/README.md
index 5ce4d0aeaf..1673d328c8 100644
--- a/README.md
+++ b/README.md
@@ -12,20 +12,17 @@ Add the following to your `.emacs`:
(add-to-list 'load-path "path/to/evil-args")
(require 'evil-args)
-`evil-args` text objects have been bound to the `a` key by default. To bind
them
-to another key `k`, add:
-
- (define-key evil-inner-text-objects-map "k" 'evil-inner-arg)
- (define-key evil-outer-text-objects-map "k" 'evil-outer-arg)
-
-To enable `evil-args` motions, add the following keybindings:
+ ;; bind evil-args text objects
+ (define-key evil-inner-text-objects-map "a" 'evil-inner-arg)
+ (define-key evil-outer-text-objects-map "a" 'evil-outer-arg)
+ ;; bind evil-forward/backward-args
(define-key evil-normal-state-map "L" 'evil-forward-arg)
(define-key evil-normal-state-map "H" 'evil-backward-arg)
-
(define-key evil-motion-state-map "L" 'evil-forward-arg)
(define-key evil-motion-state-map "H" 'evil-backward-arg)
+ ;; bind evil-jump-out-args
(define-key evil-normal-state-map "K" 'evil-jump-out-args)
##Functionality
diff --git a/evil-args.el b/evil-args.el
index 1fda382bef..54853ff7a1 100644
--- a/evil-args.el
+++ b/evil-args.el
@@ -3,8 +3,10 @@
;; Copyright (c) 2014 Connor Smith
;; Author: Connor Smith <wconnorsmith@gmail.com>
+;; URL: http://github.com/wcsmith/evil-args
;; Version: 1.0
-;; Keywords: evil, vim
+;; Keywords: evil, vim-emulation
+;; Package-Requires ((evil "1.0.8"))
;; This file is NOT part of GNU Emacs.
@@ -30,28 +32,25 @@
;;; Commentary:
-;; This package provides motions and text objects for delimited agruments in
+;; This package provides motions and text objects for delimited arguments in
;; Evil, the extensible vi layer. To activate it, add the following to your
;; .emacs:
;;
;; (add-to-list 'load-path "path/to/evil-args")
;; (require 'evil-args)
;;
-;; evil-args text objects have been bound to the 'a' key by default. To bind
-;; them to another key 'k', add:
+;; ;; bind evil-args text objects
+;; (define-key evil-inner-text-objects-map "a" 'evil-inner-arg)
+;; (define-key evil-outer-text-objects-map "a" 'evil-outer-arg)
;;
-;; (define-key evil-inner-text-objects-map "k" 'evil-inner-arg)
-;; (define-key evil-outer-text-objects-map "k" 'evil-outer-arg)
+;; ;; bind evil-forward/backward-args
+;; (define-key evil-normal-state-map "L" 'evil-forward-arg)
+;; (define-key evil-normal-state-map "H" 'evil-backward-arg)
+;; (define-key evil-motion-state-map "L" 'evil-forward-arg)
+;; (define-key evil-motion-state-map "H" 'evil-backward-arg)
;;
-;; To enable evil-arg motions, add the following keybindings:
-;;
-;; (define-key evil-normal-state-map "L" 'evil-forward-arg)
-;; (define-key evil-normal-state-map "H" 'evil-backward-arg)
-;;
-;; (define-key evil-motion-state-map "L" 'evil-forward-arg)
-;; (define-key evil-motion-state-map "H" 'evil-backward-arg)
-;;
-;; (define-key evil-normal-state-map "K" 'evil-jump-out-args)
+;; ;; bind evil-jump-out-args
+;; (define-key evil-normal-state-map "K" 'evil-jump-out-args)
;;
;; See README.md for more details.
@@ -146,13 +145,17 @@
(evil-next-line)
(evil-first-non-blank)))
+;;;###autoload (autoload 'evil-backward-arg "evil-args")
(evil-define-motion evil-backward-arg (count)
+ "Move the cursor backward COUNT arguments."
(let ((delimiters-regexp (regexp-opt evil-args-delimiters)))
(evil-args--backward-arg-no-skip
(+ (if (looking-back (concat delimiters-regexp
"[\t\n ]*")) 1 0) (or count 1)))))
+;;;###autoload (autoload 'evil-forward-arg "evil-args")
(evil-define-motion evil-forward-arg (count)
+ "Move the cursor forward COUNT arguments."
(let ((closers-regexp (regexp-opt evil-args-closers)))
(evil-args--forward-delimiter (or count 1))
(when (not (looking-at-p closers-regexp))
@@ -163,12 +166,14 @@
(evil-next-line)
(evil-first-non-blank)))))
+;;;###autoload (autoload 'evil-inner-arg "evil-args")
(evil-define-text-object evil-inner-arg (count &optional beg end type)
"Select inner delimited argument."
(let ((begin (save-excursion (evil-args--backward-arg-no-skip 1) (point)))
(end (save-excursion (evil-args--forward-delimiter) (point))))
(evil-range begin end)))
+;;;###autoload (autoload 'evil-outer-arg "evil-args")
(evil-define-text-object evil-outer-arg (count &optional beg end type)
"Select a delimited argument."
(let ((openers-regexp (regexp-opt evil-args-openers))
@@ -191,7 +196,9 @@
(setq begin (point))))
(evil-range begin end)))
+;;;###autoload (autoload 'evil-jump-out-args "evil-args")
(evil-define-motion evil-jump-out-args (count)
+ "Move cursor out of the nearest enclosing matching pairs."
(setq count (or count 1))
(let ((openers-regexp (regexp-opt evil-args-openers))
(closers-regexp (regexp-opt evil-args-closers))
@@ -222,16 +229,5 @@
(if begin (goto-char begin)))
(setq count (- count 1)))))
-;;;###autoload
-(eval-after-load 'evil
- '(progn
- (autoload 'evil-forward-arg "evil-args" nil t)
- (autoload 'evil-backward-arg "evil-args" nil t)
- (autoload 'evil-jump-out-args "evil-args" nil t)
- (autoload 'evil-inner-arg "evil-args" nil t)
- (autoload 'evil-outer-arg "evil-args" nil t)
- (define-key evil-inner-text-objects-map "a" 'evil-inner-arg)
- (define-key evil-outer-text-objects-map "a" 'evil-outer-arg)))
-
(provide 'evil-args)
;;; evil-args.el ends here
- [nongnu] elpa/evil-args 14de13714f 01/27: Initial commit., (continued)
- [nongnu] elpa/evil-args 14de13714f 01/27: Initial commit., ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args edcae1a8d9 03/27: Added evil-args.el, ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args e904186006 06/27: Added customization section to README., ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args 8d03d9d54a 07/27: Added license and boilerplate to evil-args.el., ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args 46aab06c34 10/27: Added clearer language to keybinding documentation., ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args e851ac4570 09/27: Added more commentary to evil-args.el., ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args b2bfdab464 18/27: Declare interactive commands as evil-motions separately from their definitions., ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args b4336c2317 20/27: Autoload text object macros as functions., ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args b554f83a31 22/27: Merge pull request #3 from purcell/patch-1, ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args 36ba8acc97 21/27: Add missing colon in Package-Requires header, ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args 0ab683418c 17/27: Modified autoload structure for inclusion with MELPA.,
ELPA Syncer <=
- [nongnu] elpa/evil-args 43c7fea7ee 19/27: Bugfix for evil-jump-out-args., ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args 1d3ae8b93e 16/27: Added text objects to autoload., ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args c19bc8d7f7 04/27: Updated README., ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args d172084a20 12/27: README formatting., ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args 1a0bb0e373 13/27: Added evil-args to evil customize group., ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args f4cd3b8d5c 08/27: Added motion-state binding suggestions to README.md., ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args 2a88b4d199 23/27: Add melpa instructions to README, ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args 574f9a24a1 02/27: Added LICENSE.txt., ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args 916f1bc81b 05/27: Enabled customization of openers/closers/delimiters., ELPA Syncer, 2022/02/02
- [nongnu] elpa/evil-args 758ad5ae54 26/27: Honor count argument for text objects., ELPA Syncer, 2022/02/02