1
0
Fork 0

Setup some code navigation for csharp-mode

This commit is contained in:
Tom Willemse 2020-03-02 10:01:58 -08:00
parent 2a011589f1
commit 0fbbdc9124

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2020.0229.134806 ;; Version: 2020.0302.095650
;; Package-Requires: (csharp-mode omnisharp oni-company oni-flycheck) ;; Package-Requires: (csharp-mode omnisharp oni-company oni-flycheck)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -26,6 +26,8 @@
;;; Code: ;;; Code:
(require 'csharp-mode)
(defvar oni-csharp--projects (make-hash-table :test 'equal)) (defvar oni-csharp--projects (make-hash-table :test 'equal))
(defun oni-csharp-collect-project-names () (defun oni-csharp-collect-project-names ()
@ -94,6 +96,9 @@
(add-hook 'csharp-mode-hook 'rainbow-delimiters-mode) (add-hook 'csharp-mode-hook 'rainbow-delimiters-mode)
(add-hook 'csharp-mode-hook 'smartparens-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 ;;;###autoload
(add-to-list 'auto-mode-alist '("\\.xaml\\'" . nxml-mode)) (add-to-list 'auto-mode-alist '("\\.xaml\\'" . nxml-mode))