Add dotnet cli layer

This commit is contained in:
Jordan Kaye 2017-11-27 21:02:56 -06:00 committed by duianto
parent cf796a4224
commit 828a1919df
3 changed files with 90 additions and 0 deletions

View File

@ -333,6 +333,7 @@ sane way, here is the complete list of changed key bindings
- cmake (thanks to Alexander Dalshov, Sylvain Benner and Jonas Jelten)
- dap (thanks to Ivan Yonchovski)
- debug (thanks to Hodge Shen, Troy Hinckley, and Sylvain Benner)
- dotnet (thanks to Jordan Kaye)
- emberjs (thanks to Robert O'Connor)
- import-js (thanks to Thanh Vuong and Seong Yong-ju)
- lsp (thanks to Fangrui Song, 0bl.blwl, Cormac Cannon, Juuso Valkeejärvi,
@ -1259,6 +1260,22 @@ Other:
- Added ~SPC a D C~ for =docker-compose= (thanks to Daniel Caixinha)
- Fix: broken package declaration for dockerfile-mode
(thanks to Maximilian Wolff)
**** Dotnet
- Key bindings:
- Added key bindings for =dotnet= (thanks to Jordan Kaye):
- ~SPC m d a p~ Add package to the current dotnet project
- ~SPC m d a r~ Add reference to the current dotnet project
- ~SPC m d b~ Build the current dotnet project
- ~SPC m d c~ Clean the current dotnet project
- ~SPC m d n~ Create a new dotnet project
- ~SPC m d p~ Publish the current dotnet project
- ~SPC m d r a~ Run the current dotnet project with arguments
- ~SPC m d r r~ Restore the current dotnet project
- ~SPC m d s a~ Add to the current dotnet solution
- ~SPC m d s l~ List the current dotnet solution
- ~SPC m d s n~ Create a new dotnet solution
- ~SPC m d s r~ Remove from the current dotnet solution
- ~SPC m d t~ Run tests for the current dotnet project
**** Elfeed
- Fixed selection bindings in visual state (thanks to Jeremy Symon)
- Fixed not saving on quit (thanks to Andrew Stevanus)

View File

@ -0,0 +1,40 @@
#+TITLE: Dotnet layer
* Table of Contents :TOC_4_gh:noexport:
- [[#description][Description]]
- [[#features][Features:]]
- [[#packages-included][Packages Included]]
- [[#install][Install]]
- [[#key-bindings][Key Bindings]]
* Description
This layer adds support for the dotnet cli package.
** Features:
- dotnet operations
* Packages Included
- [[https://github.com/julienXX/dotnet.el][dotnet]]
* Install
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
add =dotnet= to the existing =dotspacemacs-configuration-layers= list in this
file.
* Key Bindings
| Key binding | Description |
|---------------+-----------------------------------------------|
| ~SPC m d a p~ | Add package to the current dotnet project |
| ~SPC m d a r~ | Add reference to the current dotnet project |
| ~SPC m d b~ | Build the current dotnet project |
| ~SPC m d c~ | Clean the current dotnet project |
| ~SPC m d n~ | Create a new dotnet project |
| ~SPC m d p~ | Publish the current dotnet project |
| ~SPC m d r a~ | Run the current dotnet project with arguments |
| ~SPC m d r r~ | Restore the current dotnet project |
| ~SPC m d s a~ | Add to the current dotnet solution |
| ~SPC m d s l~ | List the current dotnet solution |
| ~SPC m d s n~ | Create a new dotnet solution |
| ~SPC m d s r~ | Remove from the current dotnet solution |
| ~SPC m d t~ | Run tests for the current dotnet project |

View File

@ -0,0 +1,33 @@
;;; packages.el --- Dotnet Layer packages File for Spacemacs
;;
;; Author: Jordan Kaye <jordan.kaye2@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(setq dotnet-packages
'(
dotnet
))
(defun dotnet/init-dotnet ()
(use-package dotnet
:defer t
:init
(spacemacs/set-leader-keys-for-major-mode 'fsharp-mode
"dap" 'dotnet-add-package
"dar" 'dotnet-add-reference
"db" 'dotnet-build
"dc" 'dotnet-clean
"dn" 'dotnet-new
"dp" 'dotnet-publish
"dra" 'dotnet-run-with-args
"drr" 'dotnet-run
"drs" 'dotnet-restore
"dsa" 'dotnet-sln-add
"dsl" 'dotnet-sln-list
"dsn" 'dotnet-sln-new
"dsr" 'dotnet-sln-remove
"dt" 'dotnet-test)))