Run Format

Text file misc/emacs/go-mode-load.el

     1	;;; go-mode-load.el --- automatically extracted autoloads
     2	;;; Commentary:
     3	
     4	;; To install go-mode, add the following lines to your .emacs file:
     5	;;   (add-to-list 'load-path "PATH CONTAINING go-mode-load.el" t)
     6	;;   (require 'go-mode-load)
     7	;;
     8	;; After this, go-mode will be used for files ending in '.go'.
     9	;;
    10	;; To compile go-mode from the command line, run the following
    11	;;   emacs -batch -f batch-byte-compile go-mode.el
    12	;;
    13	;; See go-mode.el for documentation.
    14	;;
    15	;; To update this file, evaluate the following form
    16	;;   (let ((generated-autoload-file buffer-file-name)) (update-file-autoloads "go-mode.el"))
    17	
    18	;;; Code:
    19	
    20	
    21	;;;### (autoloads (go-download-play godoc gofmt-before-save go-mode)
    22	;;;;;;  "go-mode" "go-mode.el" (20767 50749))
    23	;;; Generated autoloads from go-mode.el
    24	
    25	(autoload 'go-mode "go-mode" "\
    26	Major mode for editing Go source text.
    27	
    28	This mode provides (not just) basic editing capabilities for
    29	working with Go code. It offers almost complete syntax
    30	highlighting, indentation that is almost identical to gofmt,
    31	proper parsing of the buffer content to allow features such as
    32	navigation by function, manipulation of comments or detection of
    33	strings.
    34	
    35	Additionally to these core features, it offers various features to
    36	help with writing Go code. You can directly run buffer content
    37	through gofmt, read godoc documentation from within Emacs, modify
    38	and clean up the list of package imports or interact with the
    39	Playground (uploading and downloading pastes).
    40	
    41	The following extra functions are defined:
    42	
    43	- `gofmt'
    44	- `godoc'
    45	- `go-import-add'
    46	- `go-remove-unused-imports'
    47	- `go-goto-imports'
    48	- `go-play-buffer' and `go-play-region'
    49	- `go-download-play'
    50	
    51	If you want to automatically run `gofmt' before saving a file,
    52	add the following hook to your emacs configuration:
    53	
    54	\(add-hook 'before-save-hook 'gofmt-before-save)
    55	
    56	If you're looking for even more integration with Go, namely
    57	on-the-fly syntax checking, auto-completion and snippets, it is
    58	recommended to look at goflymake
    59	\(https://github.com/dougm/goflymake), gocode
    60	\(https://github.com/nsf/gocode) and yasnippet-go
    61	\(https://github.com/dominikh/yasnippet-go)
    62	
    63	\(fn)" t nil)
    64	
    65	(add-to-list 'auto-mode-alist (cons "\\.go\\'" 'go-mode))
    66	
    67	(autoload 'gofmt-before-save "go-mode" "\
    68	Add this to .emacs to run gofmt on the current buffer when saving:
    69	 (add-hook 'before-save-hook 'gofmt-before-save).
    70	
    71	Note that this will cause go-mode to get loaded the first time
    72	you save any file, kind of defeating the point of autoloading.
    73	
    74	\(fn)" t nil)
    75	
    76	(autoload 'godoc "go-mode" "\
    77	Show go documentation for a query, much like M-x man.
    78	
    79	\(fn QUERY)" t nil)
    80	
    81	(autoload 'go-download-play "go-mode" "\
    82	Downloads a paste from the playground and inserts it in a Go
    83	buffer. Tries to look for a URL at point.
    84	
    85	\(fn URL)" t nil)
    86	
    87	;;;***
    88	
    89	(provide 'go-mode-load)
    90	;; Local Variables:
    91	;; version-control: never
    92	;; no-byte-compile: t
    93	;; no-update-autoloads: t
    94	;; coding: utf-8
    95	;; End:
    96	;;; go-mode-load.el ends here

View as plain text