-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Russtopia/rlm-hkgo-enh
Enhanced Go hooks to add: goimports (esc-alt-i), gofmt (esc-alt-f),
- Loading branch information
Showing
2 changed files
with
56 additions
and
30 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 |
---|---|---|
@@ -1,29 +1,15 @@ | ||
/* -*- Go -*- *************************************************************** | ||
* | ||
* System : | ||
* Module : | ||
* Object Name : $RCSfile$ | ||
* Revision : $Revision$ | ||
* Date : $Date$ | ||
* Author : $Author$ | ||
* Created By : $USER_NAME$ | ||
* Created : $ASCII_TIME$ | ||
* Last Modified : <110506.0027> | ||
/* -*- go -*- | ||
* $RCSfile$ $Revision$ : $Date$ : $Author$ | ||
* | ||
* Description | ||
* | ||
* Notes | ||
* | ||
* History | ||
* | ||
**************************************************************************** | ||
************** | ||
* | ||
* Copyright (c) $YEAR$ $COMPANY_NAME$. | ||
* | ||
* All Rights Reserved. | ||
* Copyright (c) $YEAR$ $COMPANY_NAME$. All Rights Reserved. | ||
* | ||
* This document may not, in whole or in part, be copied, photocopied, | ||
* reproduced, translated, or reduced to any electronic medium or machine | ||
* This document may not, in whole or in part, be copied, photocopied, | ||
* reproduced, translated, or reduced to any electronic medium or machine | ||
* readable form without prior written consent from $COMPANY_NAME$. | ||
* | ||
****************************************************************************/ | ||
*/ |
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
9136014
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. I wonder if some of the new macros should do a save-buffer prior to running (eg., gofmt: esc-alt-f, and goimports: est-alt-i).
I hadn't loaded up a session in awhile, and forgot that one must explicitly hit ctrl-x-s to save a buffer prior to doing eithe rof the above, otherwise changes are lost!
Current macros look like this:
I'll see if I can make a version that sensibly calls save-buffer prior to the shell-command. If a better workflow occurs to you suggestions are welcome as to how best to improve these.
9136014
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Russtopia, I no longer use MicroEmacs, if you would like to take this project over, I'd be happy with that!
9136014
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh :)
Well I still have a soft spot for it even though I admit I've fallen down the Eclipse rathole over the last few years. Sure. Is there a formal handoff procedure or shall I just start updating my own tree directly and leave it at that? I'm a bit of a github n00b.
9136014
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can transfer it to you. I tried, but it said dotmicroemacs already exists for you. Maybe you have to remove your copy first? Did you add anything to it that is not in mine?
9136014
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.