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

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

[nongnu] elpa/go-mode faafd90 038/495: add autoload cookies


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode faafd90 038/495: add autoload cookies
Date: Sat, 7 Aug 2021 09:04:39 -0400 (EDT)

branch: elpa/go-mode
commit faafd907405d2a0e36a241710ef4ff40bc824f2b
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    add autoload cookies
    
    Closes gh-7
---
 go-mode.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/go-mode.el b/go-mode.el
index 8e3aab3..a3a52b8 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -245,6 +245,7 @@ built-ins, functions, and some types.")
       (skip-chars-forward "^}")
       (forward-char))))
 
+;;;###autoload
 (define-derived-mode go-mode fundamental-mode "Go"
   "Major mode for editing Go source text.
 
@@ -290,6 +291,7 @@ functions, and some types.  It also provides indentation 
that is
     (add-to-list 'compilation-error-regexp-alist-alist
                  '(go-test . ("^\t+\\([^()\t\n]+\\):\\([0-9]+\\):? .*$" 1 2)) 
t)))
 
+;;;###autoload
 (add-to-list 'auto-mode-alist (cons "\\.go\\'" 'go-mode))
 
 (defun gofmt ()
@@ -423,6 +425,7 @@ Replace the current buffer on success; display errors on 
failure."
              (kill-buffer (current-buffer))
              (message (concat "godoc: " output)))))))
 
+;;;###autoload
 (defun godoc (query)
   "Show go documentation for a query, much like M-x man."
   (interactive (list (godoc--read-query)))



reply via email to

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