forked from golang/go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go-mode for Emacs. This provides basic syntax highlighting
for keywords, built-ins, functions, and some types. It also provides indentation that is (almost) identical to gofmt. R=rsc APPROVED=rsc DELTA=509 (509 added, 0 deleted, 0 changed) OCL=35951 CL=35994
- Loading branch information
Showing
2 changed files
with
509 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
;;; 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")) | ||
|
||
|
||
;;;### (autoloads (go-mode) "go-mode" "go-mode.el" (19168 32439)) | ||
;;; Generated autoloads from go-mode.el | ||
|
||
(autoload (quote go-mode) "go-mode" "\ | ||
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) | ||
|
||
(add-to-list (quote auto-mode-alist) (cons "\\.go$" (function go-mode))) | ||
|
||
;;;*** | ||
|
||
(provide 'go-mode-load) |
Oops, something went wrong.