From 46132dcf362f3da63ffa1d8573dc5995d8e7e767 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Wed, 14 Feb 2024 02:54:33 +0000 Subject: [PATCH] Change python lsp server to pyright --- config.org | 46 +++++++++++++++++++++++++--------------------- 1 files changed, 25 insertions(+), 21 deletions(-) diff --git a/config.org b/config.org index 8d8f8e0..463e10f 100644 --- a/config.org +++ b/config.org @@ -405,6 +405,14 @@ (global-set-key (kbd "C-c e i") 'init-visit) #+END_SRC +*** Go to early-init.el +#+BEGIN_SRC emacs-lisp + (defun early-init-visit () + (interactive) + (find-file "~/.emacs.d/early-init.el")) + (global-set-key (kbd "C-c e e") 'early-init-visit) +#+END_SRC + *** Reload configuration #+BEGIN_SRC emacs-lisp (defun config-reload () @@ -1087,6 +1095,7 @@ #+BEGIN_SRC emacs-lisp (use-package tex :ensure auctex + :straight auctex :config (setq TeX-auto-save t TeX-parse-self t @@ -1242,17 +1251,18 @@ *** MATLAB Mode for editing MATLAB m-files. #+BEGIN_SRC emacs-lisp - (use-package matlab - :ensure matlab-mode - :config - (autoload 'matlab-mode "matlab" "Matlab Editing Mode" t) - (add-to-list - 'auto-mode-alist - '("\\.m$" . matlab-mode)) - (setq matlab-indent-function t) - (setq matlab-shell-command "matlab") - (matlab-cedet-setup) - (add-to-list 'company-backends 'company-matlab-shell)) + (use-package matlab + :ensure matlab-mode + :straight matlab-mode + :config + (autoload 'matlab-mode "matlab" "Matlab Editing Mode" t) + (add-to-list + 'auto-mode-alist + '("\\.m$" . matlab-mode)) + (setq matlab-indent-function t) + (setq matlab-shell-command "matlab") + (matlab-cedet-setup) + (add-to-list 'company-backends 'company-matlab-shell)) #+END_SRC *** COMMENT MIPS @@ -1313,22 +1323,15 @@ (use-package company-go) #+END_SRC *** Python -**** COMMENT LSP server -Use jedi, idk why. +**** LSP server +Use pyright, idk why. #+BEGIN_SRC emacs-lisp - (use-package lsp-jedi + (use-package lsp-pyright :config (add-to-list 'lsp-disabled-clients 'pyls) (add-to-list 'lsp-enabled-clients 'jedi)) #+END_SRC * Org mode -** Up to date org -Pull the latest org mode from the repository, rather than the org which comes with emacs. -#+BEGIN_SRC emacs-lisp - (use-package org - :pin gnu) -#+END_SRC - ** Small tweaks Small quality of life changes to org-mode. #+BEGIN_SRC emacs-lisp @@ -1425,6 +1428,7 @@ #+BEGIN_SRC emacs-lisp (use-package emms-setup :ensure emms + :straight emms :init (add-to-list 'load-path "~/elisp/emms/") :config -- Gitblit v1.9.3