2009-10-22 09:54:26 -06:00
|
|
|
|
;;; go-mode-load.el --- Major mode for the Go programming language
|
|
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
|
|
|
|
;; To install go-mode, add the following lines to your .emacs file:
|
|
|
|
|
;; (add-to-list 'load-path "PATH CONTAINING go-mode-load.el" t)
|
|
|
|
|
;; (require 'go-mode-load)
|
|
|
|
|
;; After this, go-mode will be used for files ending in '.go'.
|
|
|
|
|
|
|
|
|
|
;; To compile go-mode from the command line, run the following
|
|
|
|
|
;; emacs -batch -f batch-byte-compile go-mode.el
|
|
|
|
|
|
|
|
|
|
;; See go-mode.el for documentation.
|
|
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
|
|
;; To update this file, evaluate the following form
|
|
|
|
|
;; (let ((generated-autoload-file buffer-file-name)) (update-file-autoloads "go-mode.el"))
|
|
|
|
|
|
|
|
|
|
|
2011-03-24 08:35:39 -06:00
|
|
|
|
;;;### (autoloads (gofmt-before-save gofmt go-mode) "go-mode" "go-mode.el"
|
2011-05-13 09:05:03 -06:00
|
|
|
|
;;;;;; (19917 17808))
|
2009-10-22 09:54:26 -06:00
|
|
|
|
;;; Generated autoloads from go-mode.el
|
|
|
|
|
|
2011-03-24 08:35:39 -06:00
|
|
|
|
(autoload 'go-mode "go-mode" "\
|
2009-10-22 09:54:26 -06:00
|
|
|
|
Major mode for editing Go source text.
|
|
|
|
|
|
|
|
|
|
This provides basic syntax highlighting for keywords, built-ins,
|
|
|
|
|
functions, and some types. It also provides indentation that is
|
|
|
|
|
\(almost) identical to gofmt.
|
|
|
|
|
|
|
|
|
|
\(fn)" t nil)
|
|
|
|
|
|
2011-03-24 08:35:39 -06:00
|
|
|
|
(add-to-list 'auto-mode-alist (cons "\\.go$" #'go-mode))
|
|
|
|
|
|
|
|
|
|
(autoload 'gofmt "go-mode" "\
|
|
|
|
|
Pipe the current buffer through the external tool `gofmt`.
|
|
|
|
|
Replace the current buffer on success; display errors on failure.
|
|
|
|
|
|
|
|
|
|
\(fn)" t nil)
|
|
|
|
|
|
|
|
|
|
(autoload 'gofmt-before-save "go-mode" "\
|
|
|
|
|
Add this to .emacs to run gofmt on the current buffer when saving:
|
|
|
|
|
(add-hook 'before-save-hook #'gofmt-before-save)
|
|
|
|
|
|
|
|
|
|
\(fn)" t nil)
|
2009-10-22 09:54:26 -06:00
|
|
|
|
|
|
|
|
|
;;;***
|
|
|
|
|
|
|
|
|
|
(provide 'go-mode-load)
|