summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-11-07 20:01:07 -0500
committermattkae <mattkae@protonmail.com>2022-11-07 20:01:07 -0500
commit905be3d7a63c384485252a1f1cdf14287b79a159 (patch)
treee0373dacc2435def5663c89ad03aa3b20c4dbce6 /lisp
parent5eae98a4a4728bc102e40b039cd8f3ab129a9348 (diff)
Halfway decent python mode
Diffstat (limited to 'lisp')
-rw-r--r--lisp/cpp.el5
-rw-r--r--lisp/python-custom.el12
2 files changed, 17 insertions, 0 deletions
diff --git a/lisp/cpp.el b/lisp/cpp.el
index b7f5242..79d31fa 100644
--- a/lisp/cpp.el
+++ b/lisp/cpp.el
@@ -20,5 +20,10 @@
(add-hook 'c-mode-common-hook 'setup-c)
(add-hook 'c-mode-common-hook 'eglot-ensure)
+(defun create-cpp-class()
+ "Create a cpp class."
+ (interactive "Enter the name of the class: ")
+ )
+
(provide 'cpp)
;;; cpp.el ends here
diff --git a/lisp/python-custom.el b/lisp/python-custom.el
new file mode 100644
index 0000000..ebb2b81
--- /dev/null
+++ b/lisp/python-custom.el
@@ -0,0 +1,12 @@
+
+;;; Code:
+(require 'python)
+(use-package eglot
+ :ensure t
+ :config
+ (add-to-list 'eglot-server-programs '(python-mode . ("pylsp")))
+ :hook
+ ((python-mode . eglot-ensure)))
+
+(provide 'python-custom)
+;;; python-custom.el ends here