"g u" key binding for Emacs

This commit is contained in:
2022-05-13 12:36:26 -07:00
parent 839f39cf23
commit ac1dbf979c
3 changed files with 5 additions and 2 deletions

View File

@@ -10,7 +10,6 @@ SPC p g to open projectile project straight to git
https://karthinks.com/software/fifteen-ways-to-use-embark/
** Snippets
*** Insert Org source block
** g u to go to references
* Kitty
** Fine tune theme for visiblity on mac/windows
** Nix-installed kitty on Linux

View File

@@ -121,3 +121,7 @@
(define-key company-active-map (kbd "<return>") nil)
(define-key company-active-map (kbd "RET") nil)
(define-key company-active-map (kbd "C-SPC") #'company-complete-selection))
;; "g u" in normal mode finds references, using LSP if available
(map! :n "g u" #'xref-find-references)
(map! :mode lsp-mode :n "g u" #'lsp-ui-peek-find-references)

View File

@@ -80,7 +80,7 @@
(eval +overlay) ; run code, run (also, repls)
;;gist ; interacting with github gists
lookup ; navigate your code and its documentation
lsp
(lsp +peek)
;;macos ; MacOS-specific commands
magit ; a git porcelain for Emacs
;;make ; run make tasks from Emacs