emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/capf-autosuggest d8433bc 51/63: Suggest autoload instea


From: ELPA Syncer
Subject: [elpa] externals/capf-autosuggest d8433bc 51/63: Suggest autoload instead of require
Date: Wed, 27 Oct 2021 14:58:03 -0400 (EDT)

branch: externals/capf-autosuggest
commit d8433bccb4a588ab870369ec58432e08980e2314
Author: jakanakaevangeli <jakanakaevangeli@chiru.no>
Commit: jakanakaevangeli <jakanakaevangeli@chiru.no>

    Suggest autoload instead of require
---
 capf-autosuggest.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/capf-autosuggest.el b/capf-autosuggest.el
index 6dc124b..151153b 100644
--- a/capf-autosuggest.el
+++ b/capf-autosuggest.el
@@ -33,7 +33,8 @@
 ;; Add the following to your Emacs init file:
 ;;
 ;;  (add-to-list 'load-path "/path/to/emacs-capf-autosuggest")
-;;  (require 'capf-autosuggest)
+;;  (autoload 'capf-autosuggest-setup-comint "capf-autosuggest")
+;;  (autoload 'capf-autosuggest-setup-eshell "capf-autosuggest")
 ;;  (add-hook 'comint-mode-hook #'capf-autosuggest-setup-comint)
 ;;  (add-hook 'eshell-mode-hook #'capf-autosuggest-setup-eshell)
 ;;
@@ -48,8 +49,8 @@
 ;;  (with-eval-after-load 'capf-autosuggest
 ;;    (capf-autosuggest-define-partial-accept-cmd
 ;;     movable-forward-sexp forward-sexp)
-;;    (define-key capf-autosuggest-active-mode-map [remap forward-sexp]
-;;      #'movable-forward-sexp))
+;;    (define-key capf-autosuggest-active-mode-map
+;;      [remap forward-sexp] #'movable-forward-sexp))
 ;;
 ;; By default, C-n (next-line) will accept the currently displayed suggestion
 ;; and send input to shell/eshell.  See the customization group
@@ -504,6 +505,7 @@ Is only applicable if point is after the last prompt."
       (list beg end (capf-autosuggest--completion-table ring)
             :exclusive 'no)))))
 
+;;;###autoload
 (defun capf-autosuggest-eshell-capf ()
   "Completion-at-point function for eshell input history.
 Is only applicable if point is after the last prompt."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]