From 5d944714d868fed2999cfdb99c649ecbd0fb304a Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Mon, 16 May 2022 23:54:19 -0400 Subject: [PATCH 1/3] Added keybinds for dap-mode --- emacs.d/init.el | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/emacs.d/init.el b/emacs.d/init.el index 4f24c70..293b871 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -287,7 +287,12 @@ (eval-when-compile (require 'cl-lib)) (require 'dap-python) - (require 'dap-node)) + (require 'dap-node) + :bind + (:map dap-mode-map + ("" . dap-mode) + ("" . dap-next) + ("" . dap-step-in))) (use-package company :config @@ -298,12 +303,12 @@ (company-tooltip-align-annotations t) :bind (:map company-active-map - ("RET" . nil) + ("RET" . nil) ("[return]" . nil) - ("TAB" . company-complete-selection) - ("" . company-complete-selection) - ("C-n" . company-select-next) - ("C-p" . company-select-previous))) + ("TAB" . company-complete-selection) + ("" . company-complete-selection) + ("C-n" . company-select-next) + ("C-p" . company-select-previous))) ;;; Languages From 782892800159152a13b48f867145cabc528d0f24 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Tue, 17 May 2022 11:20:38 -0400 Subject: [PATCH 2/3] More dap-mode keybinds --- emacs.d/init.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/emacs.d/init.el b/emacs.d/init.el index 293b871..230568e 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -290,9 +290,11 @@ (require 'dap-node) :bind (:map dap-mode-map - ("" . dap-mode) - ("" . dap-next) - ("" . dap-step-in))) + ("" . dap-debug) + ("" . dap-next) + ("" . dap-step-in) + ("S-" . dap-disconnect) + ("C-S-" . dap-debug-restart))) (use-package company :config From d190a24a8e3b0e22376b3adf1f7a975a1cf05a44 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Wed, 1 Jun 2022 18:32:24 -0400 Subject: [PATCH 3/3] Minor updates to straight, js2-mode, and restclient --- emacs.d/init.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/emacs.d/init.el b/emacs.d/init.el index 230568e..904873d 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -83,7 +83,7 @@ (unless (file-exists-p bootstrap-file) (with-current-buffer (url-retrieve-synchronously - "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el" + "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el" 'silent 'inhibit-cookies) (goto-char (point-max)) (eval-print-last-sexp))) @@ -354,7 +354,8 @@ (use-package js2-mode :config (add-to-list 'interpreter-mode-alist '("#!/usr/bin/env node" . js2-mode)) - (setq js2-mode-show-strict-warnings nil) + ;(setq js2-strict-missing-semi-warning t) + (setq js2-mode-show-strict-warnings t) :hook (js-mode . js2-minor-mode)) (use-package typescript-mode @@ -365,7 +366,8 @@ (use-package restclient :init - (use-package company-restclient)) + (use-package company-restclient) + :mode ("\\.http\\'" . restclient-mode)) (use-package rainbow-mode :hook