From f941d540e399747b10540b096ff9300cb3a35ad9 Mon Sep 17 00:00:00 2001 From: Konstantin Shaposhnikov Date: Thu, 8 Oct 2015 19:37:13 +0800 Subject: [PATCH] refactor/rename: emacs: package.el compatibility changes Change-Id: Ia37db2bfbe02015eb38f13fc7fc58a9aec9c551c Reviewed-on: https://go-review.googlesource.com/15527 Reviewed-by: Alan Donovan --- refactor/rename/{rename.el => go-rename.el} | 37 +++++++++++++-------- 1 file changed, 24 insertions(+), 13 deletions(-) rename refactor/rename/{rename.el => go-rename.el} (83%) diff --git a/refactor/rename/rename.el b/refactor/rename/go-rename.el similarity index 83% rename from refactor/rename/rename.el rename to refactor/rename/go-rename.el index 139bb47271..a311e07da7 100644 --- a/refactor/rename/rename.el +++ b/refactor/rename/go-rename.el @@ -1,16 +1,25 @@ -;;; Copyright 2014 The Go Authors. All rights reserved. -;;; Use of this source code is governed by a BSD-style -;;; license that can be found in the LICENSE file. -;;; -;;; Integration of the 'gorename' tool into Emacs. -;;; -;;; To install: -;;; % go get golang.org/x/tools/cmd/gorename -;;; % go build golang.org/x/tools/cmd/gorename -;;; % mv gorename $HOME/bin/ # or elsewhere on $PATH -;;; -;;; The go-rename-command variable can be customized to specify an -;;; alternative location for the installed command. +;;; go-rename.el --- Integration of the 'gorename' tool into Emacs. + +;; Copyright 2014 The Go Authors. All rights reserved. +;; Use of this source code is governed by a BSD-style +;; license that can be found in the LICENSE file. + +;; Version: 0.1 +;; Package-Requires: ((go-mode "1.3.1")) +;; Keywords: tools + +;;; Commentary: + +;; To install: + +;; % go get golang.org/x/tools/cmd/gorename +;; % go build golang.org/x/tools/cmd/gorename +;; % mv gorename $HOME/bin/ # or elsewhere on $PATH + +;; The go-rename-command variable can be customized to specify an +;; alternative location for the installed command. + +;;; Code: (require 'compile) (require 'go-mode) @@ -94,3 +103,5 @@ the `gorename' tool. With FORCE, call `gorename' with the (buffer-substring (point-min) (point-max)))) (provide 'go-rename) + +;;; go-rename.el ends here