diff options
author | Tom Willemse | 2020-03-02 10:01:58 -0800 |
---|---|---|
committer | Tom Willemse | 2020-03-02 10:01:58 -0800 |
commit | 0fbbdc912404eb020565dae872fc31416f377aa2 (patch) | |
tree | 2e3614e64ea3bc2a92a323e20885d30c4d953646 /oni-csharp.el | |
parent | 2a011589f1a0970c2bd7cf0b2a7ed6ee87f0dda0 (diff) | |
download | emacs-config-0fbbdc912404eb020565dae872fc31416f377aa2.tar.gz emacs-config-0fbbdc912404eb020565dae872fc31416f377aa2.zip |
Setup some code navigation for csharp-mode
Diffstat (limited to 'oni-csharp.el')
-rw-r--r-- | oni-csharp.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/oni-csharp.el b/oni-csharp.el index 954ab70..79fcaea 100644 --- a/oni-csharp.el +++ b/oni-csharp.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; Keywords: local -;; Version: 2020.0229.134806 +;; Version: 2020.0302.095650 ;; Package-Requires: (csharp-mode omnisharp oni-company oni-flycheck) ;; This program is free software; you can redistribute it and/or modify @@ -26,6 +26,8 @@ ;;; Code: +(require 'csharp-mode) + (defvar oni-csharp--projects (make-hash-table :test 'equal)) (defun oni-csharp-collect-project-names () @@ -94,6 +96,9 @@ (add-hook 'csharp-mode-hook 'rainbow-delimiters-mode) (add-hook 'csharp-mode-hook 'smartparens-mode) +(define-key csharp-mode-map (kbd "M-.") 'omnisharp-go-to-definition) +(define-key csharp-mode-map (kbd "M-?") 'omnisharp-find-usages) + ;;;###autoload (add-to-list 'auto-mode-alist '("\\.xaml\\'" . nxml-mode)) |