-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[New] Support Debug Adapter Protocol: dap-mode.
- Loading branch information
1 parent
d9e8768
commit d4bcd5e
Showing
4 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,3 +67,4 @@ ido.* | |
flycheck_*.el* | ||
README.html | ||
*.sqlite | ||
.dap-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
;; init-dap.el --- Initialize dap configurations. -*- lexical-binding: t -*- | ||
|
||
;; Copyright (C) 2019 Vincent Zhang | ||
|
||
;; Author: Vincent Zhang <[email protected]> | ||
;; URL: https://github.com/seagle0128/.emacs.d | ||
|
||
;; This file is not part of GNU Emacs. | ||
;; | ||
;; This program is free software; you can redistribute it and/or | ||
;; modify it under the terms of the GNU General Public License as | ||
;; published by the Free Software Foundation; either version 2, or | ||
;; (at your option) any later version. | ||
;; | ||
;; This program is distributed in the hope that it will be useful, | ||
;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
;; General Public License for more details. | ||
;; | ||
;; You should have received a copy of the GNU General Public License | ||
;; along with this program; see the file COPYING. If not, write to | ||
;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth | ||
;; Floor, Boston, MA 02110-1301, USA. | ||
;; | ||
|
||
;;; Commentary: | ||
;; | ||
;; Debug Adapter Protocol configurations. | ||
;; | ||
|
||
;;; Code: | ||
|
||
(use-package dap-mode | ||
:hook ((after-init . dap-mode) | ||
(dap-mode . dap-ui-mode) | ||
|
||
(python-mode . (lambda () (require 'dap-python))) | ||
(go-mode . (lambda () (require 'dap-go))) | ||
(java-mode . (lambda () (require 'dap-java))) | ||
(rust-mode . (lambda () (require 'dap-rust))) | ||
((c-mode c++-mode objc-mode swift) . (lambda () (require 'dap-lldb))) | ||
(php-mode . (lambda () (require 'dap-php))))) | ||
|
||
(provide 'init-dap) | ||
|
||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;; init-dap.el ends here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters