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

---
 init.el |   39 +++++++++++++++++----------------------
 1 files changed, 17 insertions(+), 22 deletions(-)

diff --git a/init.el b/init.el
index 5a19930..cd71472 100644
--- a/init.el
+++ b/init.el
@@ -2,35 +2,30 @@
 (setq custom-file "~/.emacs.d/custom.el")
 (load custom-file 'noerror)
 
-;; Repos
-(require 'package)
-(setq package-archives '(("gnu"   . "http://elpa.gnu.org/packages/")
-			 ("melpa" . "https://melpa.org/packages/")
-			 ("org"   . "https://orgmode.org/elpa/")))
-(package-initialize)
-
-;; use-package
-(unless (package-installed-p 'use-package)
-  (package-refresh-contents)
-  (package-install 'use-package))
-
-(eval-when-compile
-  (require 'use-package))
+;; Load package manager
+(setq package-manager 'straight)
+(load "~/.emacs.d/package-manager.el" `noerror)
 
 ;; auto-package-update
-(use-package auto-package-update
-  :ensure t
-  :config
-  (setq auto-package-update-delete-old-versions t)
-  (setq auto-package-update-hide-results t)
-  (auto-package-update-maybe))
+(when (eq package-manager 'package)
+  (use-package auto-package-update
+    :ensure t
+    :config
+    (setq auto-package-update-delete-old-versions t)
+    (setq auto-package-update-hide-results t)
+    (setq auto-package-update-interval 7)
+    (setq auto-package-update-at-time "03:00")
+    (auto-package-update-maybe)))
 
 ;; diminish
-(use-package diminish
-  :ensure t)
+(use-package diminish)
+
+;; org-mode
+(use-package org)
 
 ;; redirect to org config file
 (when (file-readable-p "~/.emacs.d/config.org")
   (org-babel-load-file "~/.emacs.d/config.org"))
 (put 'upcase-region 'disabled nil)
 (put 'downcase-region 'disabled nil)
+(put 'list-timers 'disabled nil)

--
Gitblit v1.9.3