[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-editor f401e12 071/140: Add some autoload
From: |
Jonas Bernoulli |
Subject: |
[nongnu] elpa/with-editor f401e12 071/140: Add some autoload |
Date: |
Fri, 6 Aug 2021 12:51:22 -0400 (EDT) |
branch: elpa/with-editor
commit f401e12316f1db871b7c194696ff3f4e7e5bf347
Author: RĂ©mi Vanicat <vanicat@debian.org>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Add some autoload
The selected function are the function describe as entry point in
README.md plus with-editor-export-hg-editor that has the same role
than with-editor-export-git-editor, but for another VCS.
---
with-editor.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/with-editor.el b/with-editor.el
index 45c9378..e7592ad 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -588,6 +588,7 @@ which may or may not insert the text into the PROCESS'
buffer."
;;; Augmentations
+;;;###autoload
(cl-defun with-editor-export-editor (&optional (envvar "EDITOR"))
"Teach subsequent commands to use current Emacs instance as editor.
@@ -617,11 +618,13 @@ This works in `shell-mode', `term-mode' and
`eshell-mode'."
(error "Cannot export environment variables in this buffer")))
(message "Successfully exported %s" envvar))
+;;;###autoload
(defun with-editor-export-git-editor ()
"Like `with-editor-export-editor' but always set `$GIT_EDITOR'."
(interactive)
(with-editor-export-editor "GIT_EDITOR"))
+;;;###autoload
(defun with-editor-export-hg-editor ()
"Like `with-editor-export-editor' but always set `$HG_EDITOR'."
(interactive)
@@ -643,6 +646,7 @@ This works in `shell-mode', `term-mode' and `eshell-mode'."
with-editor-envvars nil nil nil nil default)))
(if (string= reply "") (user-error "Nothing selected") reply)))
+;;;###autoload
(define-minor-mode shell-command-with-editor-mode
"Teach `shell-command' to use current Emacs instance as editor.
@@ -661,6 +665,7 @@ which also allows the use of another variable instead of
\"EDITOR\"."
:global t)
+;;;###autoload
(defun with-editor-async-shell-command
(command &optional output-buffer error-buffer envvar)
"Like `async-shell-command' but with `$EDITOR' set.
@@ -683,6 +688,7 @@ Also see `async-shell-command' and `shell-command'."
(with-editor
(async-shell-command command output-buffer error-buffer))))
+;;;###autoload
(defun with-editor-shell-command
(command &optional output-buffer error-buffer envvar)
"Like `shell-command' or `with-editor-async-shell-command'.
- [nongnu] elpa/with-editor 50b40a8 059/140: manual: enforce preservation of indentation, (continued)
- [nongnu] elpa/with-editor 50b40a8 059/140: manual: enforce preservation of indentation, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor d34824c 009/140: add .mailmap file, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor fab38c4 016/140: with-editor-export-editor: don't suppress output during setup, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor e300dab 041/140: with-editor-locate-emacsclient: cosmetics, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 791f985 042/140: with-editor-locate-emacsclient: fix previous commit, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor b8641ac 054/140: with-editor-output-filter: don't assume default-directory is valid, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor b0ff338 060/140: manual: put local-variables into an ignored section, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 6147262 064/140: make: remove clean-texi and clean-all targets, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor f733034 067/140: Ignore additional generated files, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 93876b6 068/140: manual: use @noindent before version sentence, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor f401e12 071/140: Add some autoload,
Jonas Bernoulli <=
- [nongnu] elpa/with-editor fcbccec 072/140: Use process-live-p to check whether process is alive, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 3e64247 080/140: Release version 2.7.4, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor cacb41d 062/140: make: use same export settings as for manual Org exports, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ee39f23 065/140: make: generate CDN invalidation after upload, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 73d3d1a 066/140: Use the emacsclient again when running shell commands, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ff3e969 077/140: make: Refactor manual publishing, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 3ad940c 086/140: Update documentation, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor db11c10 089/140: Release version 2.8.0, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 46a7b51 090/140: with-editor-{finish, cancel}-hook: No longer ignore global value, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 66bec91 098/140: Release version 2.8.3, Jonas Bernoulli, 2021/08/06