Implement fsharp :lang module

This commit is contained in:
Reed Mullanix 2019-04-13 23:23:55 -07:00 committed by Reed Mullanix
parent febeed2526
commit 8ef56f5bc0
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,13 @@
;;; lang/fsharp/config.el -*- lexical-binding: t; -*-
(after! fsharp-mode
(setq fsharp-ac-use-popup nil) ; Use a buffer for docs rather than a pop-up
(set-lookup-handlers! 'fsharp-mode :async t :definition #'fsharp-ac/gotodefn-at-point)
(set-company-backend! 'fsharp-mode 'fsharp-ac/company-backend)
(set-repl-handler! 'fsharp-mode #'fsharp-show-subshell)
(map! :localleader
:map fsharp-mode-map
"b" #'fsharp-ac/pop-gotodefn-stack ; Useful for re-tracing your steps
"l" #'fsharp-load-buffer-file
"q" #'fsharp-ac/stop-process
"t" #'fsharp-ac/show-tooltip-at-point))