diff options
| author | benj <benj@rse8.com> | 2021-09-11 14:04:09 -0700 |
|---|---|---|
| committer | benj <benj@rse8.com> | 2021-09-11 14:04:09 -0700 |
| commit | 95cceda8ef5c721096b60f874c594e1f0b8b5abb (patch) | |
| tree | db4ec60959ca2d954d00ab0f8c631417805f445a /settings | |
| parent | 518baa4296035df24d4271a4d188af5db3bd52f7 (diff) | |
| download | emacs-95cceda8ef5c721096b60f874c594e1f0b8b5abb.tar emacs-95cceda8ef5c721096b60f874c594e1f0b8b5abb.tar.gz emacs-95cceda8ef5c721096b60f874c594e1f0b8b5abb.tar.bz2 emacs-95cceda8ef5c721096b60f874c594e1f0b8b5abb.tar.lz emacs-95cceda8ef5c721096b60f874c594e1f0b8b5abb.tar.xz emacs-95cceda8ef5c721096b60f874c594e1f0b8b5abb.tar.zst emacs-95cceda8ef5c721096b60f874c594e1f0b8b5abb.zip | |
- rustic mode snippets
- dap-mode rust lldb configuration
- hl-todo-mode
Diffstat (limited to '')
| -rw-r--r-- | settings/sane-defaults.el | 3 | ||||
| -rw-r--r-- | settings/setup-dap-mode.el | 6 | ||||
| -rw-r--r-- | settings/setup-plz-mode.el | 4 | ||||
| -rw-r--r-- | settings/setup-rustic-mode.el | 9 |
4 files changed, 14 insertions, 8 deletions
diff --git a/settings/sane-defaults.el b/settings/sane-defaults.el index cf17758..204f939 100644 --- a/settings/sane-defaults.el +++ b/settings/sane-defaults.el @@ -41,6 +41,9 @@ ;; Transparently open compressed files (auto-compression-mode t) +;; Enable todo mode everywhere +(add-hook 'prog-mode-hook #'hl-todo-mode) + ;; Answering just 'y' or 'n' will do (defalias 'yes-or-no-p 'y-or-n-p) diff --git a/settings/setup-dap-mode.el b/settings/setup-dap-mode.el new file mode 100644 index 0000000..208e1c8 --- /dev/null +++ b/settings/setup-dap-mode.el @@ -0,0 +1,6 @@ +;;; setup-dap-mode.el --- -*- lexical-binding: t; -*- +(with-eval-after-load 'dap-mode + (define-key dap-mode-map (kbd "C-c d d") 'dap-hydra)) + +(provide 'setup-dap-mode) +;;; setup-dap-mode.el ends here diff --git a/settings/setup-plz-mode.el b/settings/setup-plz-mode.el deleted file mode 100644 index 677a7bb..0000000 --- a/settings/setup-plz-mode.el +++ /dev/null @@ -1,4 +0,0 @@ -(add-to-list 'auto-mode-alist '(".plz\\'" . sh-mode)) - -(provide 'setup-plz-mode) -;;; setup-plz-mode.el ends here diff --git a/settings/setup-rustic-mode.el b/settings/setup-rustic-mode.el index 74ceb29..75c8464 100644 --- a/settings/setup-rustic-mode.el +++ b/settings/setup-rustic-mode.el @@ -1,21 +1,22 @@ (require 'dap-lldb) (require 'dap-gdb-lldb) - +;; installs .extension/vscode (dap-gdb-lldb-setup) (dap-register-debug-template - "Rust::LLDB Run Configuration" + "Rust::LLDB" (list :type "lldb" :request "launch" - :name "GDB::Run" + :name "LLDB::Run" :gdbpath "rust-lldb" :target nil - :cwd nil)) + :cwd (projectile-project-root))) (defun rk/rustic-mode-hook () ;; so that run C-c C-c C-r works without having to confirm (setq-local buffer-save-without-query t)) (setq rustic-format-on-save t) +(setq lsp-rust-analyzer-server-display-inlay-hints t) (add-hook 'rustic-mode-hook 'rk/rustic-mode-hook) (provide 'setup-rustic-mode) |
