[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/go-mode d209550 353/495: cmd/guru: emacs: minor changes to
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/go-mode d209550 353/495: cmd/guru: emacs: minor changes to keybindings |
Date: |
Sat, 7 Aug 2021 09:05:46 -0400 (EDT) |
branch: elpa/go-mode
commit d2095503f59cf4ea2d7d3fc4514a2c967dc61be7
Author: Alan Donovan <alan@alandonovan.net>
Commit: Dominik Honnef <dominik@honnef.co>
cmd/guru: emacs: minor changes to keybindings
Major modes should use the C-c prefix followed by C-something. We'll
stick with C-o (oracle) since C-g is taken by go-jump-xxx (and in any
case C-g should be reserved for keyboard-quit.)
Change-Id: I18f41d7cbd5bf83aa53909554501e7f76543f033
Reviewed-on: https://go-review.googlesource.com/19510
Reviewed-by: Michael Matloob <matloob@golang.org>
---
guru_import/cmd/guru/guru.el | 27 +++++++++++++--------------
1 file changed, 13 insertions(+), 14 deletions(-)
diff --git a/guru_import/cmd/guru/guru.el b/guru_import/cmd/guru/guru.el
index 619b8db..4e9ad32 100644
--- a/guru_import/cmd/guru/guru.el
+++ b/guru_import/cmd/guru/guru.el
@@ -35,19 +35,18 @@
;; Extend go-mode-map.
(let ((m go-mode-map))
- (define-key m (kbd "C-c C-o t") #'go-guru-describe) ; t for type
- (define-key m (kbd "C-c C-o f") #'go-guru-freevars)
- (define-key m (kbd "C-c C-o g") #'go-guru-callgraph)
- (define-key m (kbd "C-c C-o i") #'go-guru-implements)
- (define-key m (kbd "C-c C-o c") #'go-guru-peers) ; c for channel
- (define-key m (kbd "C-c C-o r") #'go-guru-referrers)
- (define-key m (kbd "C-c C-o d") #'go-guru-definition)
- (define-key m (kbd "C-c C-o p") #'go-guru-pointsto)
- (define-key m (kbd "C-c C-o s") #'go-guru-callstack)
- (define-key m (kbd "C-c C-o <") #'go-guru-callers)
- (define-key m (kbd "C-c C-o >") #'go-guru-callees)
- (define-key m (kbd "<f5>") #'go-guru-describe)
- (define-key m (kbd "<f6>") #'go-guru-referrers))
+ (define-key m "d" #'go-guru-describe)
+ (define-key m "f" #'go-guru-freevars)
+ (define-key m "i" #'go-guru-implements)
+ (define-key m "c" #'go-guru-peers) ; c for channel
+ (define-key m "r" #'go-guru-referrers)
+ (define-key m "j" #'go-guru-definition) ; j for jump
+ (define-key m "p" #'go-guru-pointsto)
+ (define-key m "s" #'go-guru-callstack) ; s for stack
+ (define-key m "<" #'go-guru-callers)
+ (define-key m ">" #'go-guru-callees))
+
+(define-key go-mode-map (kbd "C-c C-o") #'go-guru-map)
;; TODO(dominikh): Rethink set-scope some. Setting it to a file is
;; painful because it doesn't use find-file, and variables/~ aren't
@@ -125,7 +124,7 @@ a scope if not already set. Return the output buffer."
;; Log the command to *Messages*, for debugging.
(message "Command: %s:" args)
(message nil) ; clears/shrinks minibuffer
- (message "Running guru...")
+ (message "Running guru %s..." mode)
;; Use dynamic binding to modify/restore the environment
(let* ((process-environment (list* goroot-env gopath-env
process-environment))
(c-p-args (append (list (point-min)
- [nongnu] elpa/go-mode 27b7415 293/495: Allow passing additional arguments to gofmt, (continued)
- [nongnu] elpa/go-mode 27b7415 293/495: Allow passing additional arguments to gofmt, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 1214f77 294/495: Bind go-goto-map to C-f, not C-g, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 17bd2b2 296/495: Add GOPATH detection, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 9f785cc 298/495: Document stability of the master branch, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode f8b4bf9 300/495: Add to beginning of compilation-error-regexp-alist, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode cfaa193 348/495: cmd/guru: rename oracle to guru, copying it to a single package, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 4d1ab9f 347/495: cmd/oracle: improve error messages, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 9c2bf9b 360/495: cmd/guru: emacs: push mark in go-guru-definition, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 5ef1d53 355/495: cmd/guru: use byte (not rune) count in -modified archive, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 60ed26e 368/495: cmd/guru: emacs: only check modified buffers with file names, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode d209550 353/495: cmd/guru: emacs: minor changes to keybindings,
ELPA Syncer <=
- [nongnu] elpa/go-mode 6ac5669 372/495: cmd/guru: emacs: interpret byte offsets correctly, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode afb2a24 382/495: go.tools: use golang.org/x/... import paths, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 3a82342 379/495: Regenerate AUTHORS, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 8991b83 384/495: refactor/rename: emacs: kill go-rename buffer correctly, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode adea2e5 395/495: Make go-guru-build-tags a list of strings, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode d511e35 402/495: Replace obsolete one-argument form of ‘looking-back’., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 35f6826 404/495: Bump version to 1.5.0, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode da55ef1 413/495: Evaluate error conditions before prompting for new name, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 59dfa96 423/495: Add confirmation prompt for Playground uploads, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 13e9f22 428/495: Fix go-rename when buffer is not visiting any file, ELPA Syncer, 2021/08/07