diff options
Diffstat (limited to '.emacs.d/modules/thanos-dev.el')
-rw-r--r-- | .emacs.d/modules/thanos-dev.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.emacs.d/modules/thanos-dev.el b/.emacs.d/modules/thanos-dev.el index d80170e..f711bba 100644 --- a/.emacs.d/modules/thanos-dev.el +++ b/.emacs.d/modules/thanos-dev.el @@ -51,6 +51,13 @@ ;; Magit (require 'magit) +(defun project-magit () + "Run magit-status in the current project's root." + (interactive) + (magit-status (project-root (project-current t)))) + +(define-key project-prefix-map (kbd "s") 'project-magit) + (setf magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1) (define-prefix-command 'thanos/magit) (global-set-key (kbd "C-c g") 'thanos/magit) @@ -103,7 +110,7 @@ (require 'python-mode) (add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode)) -(add-hook 'python-mode 'lsp-mode) +(add-hook 'python-mode #'eglot) ;; json (require 'json-mode) |