Use built-in use-package and eglot. Disable external tree-sitter.

This commit is contained in:
Tom Alexander 2023-05-26 23:03:31 -04:00
parent cb383ead75
commit ec44eb5960
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 11 additions and 14 deletions

View File

@ -1,14 +1,9 @@
(package-initialize) (use-package use-package)
(add-to-list 'package-archives (add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") '("melpa" . "https://melpa.org/packages/")
) )
(when (not package-archive-contents)
(package-refresh-contents))
(unless (package-installed-p 'use-package)
(package-install 'use-package))
(use-package auto-package-update (use-package auto-package-update
:ensure t :ensure t
:config :config
@ -32,6 +27,7 @@
require-final-newline t require-final-newline t
visible-bell nil visible-bell nil
ring-bell-function 'ignore ring-bell-function 'ignore
;; Write custom variables to an unused file so in-editor changes do not persist.
custom-file "~/.emacs.d/.custom.el" custom-file "~/.emacs.d/.custom.el"
;; http://ergoemacs.org/emacs/emacs_stop_cursor_enter_prompt.html ;; http://ergoemacs.org/emacs/emacs_stop_cursor_enter_prompt.html
minibuffer-prompt-properties minibuffer-prompt-properties
@ -59,6 +55,8 @@
use-short-answers t use-short-answers t
package-native-compile t package-native-compile t
delete-selection-mode t delete-selection-mode t
;; Don't show warnings when compiling elisp to native binaries.
native-comp-async-report-warnings-errors 'silent
) )
(defun assert-directory (p) (defun assert-directory (p)
@ -69,8 +67,6 @@
(setq autoload-directory (concat user-emacs-directory (file-name-as-directory "elisp") (file-name-as-directory "autoload"))) (setq autoload-directory (concat user-emacs-directory (file-name-as-directory "elisp") (file-name-as-directory "autoload")))
(add-to-list 'load-path (assert-directory autoload-directory)) (add-to-list 'load-path (assert-directory autoload-directory))
;; Bookmarks ;; Bookmarks
(setq (setq
;; persistent bookmarks ;; persistent bookmarks

View File

@ -1,4 +1,5 @@
(use-package eglot (use-package eglot
:pin gnu
:commands (eglot eglot-ensure) :commands (eglot eglot-ensure)
:bind (:map eglot-mode-map :bind (:map eglot-mode-map
;; M-. ;; M-.

View File

@ -1,7 +1,7 @@
(use-package tree-sitter ;; (use-package tree-sitter
:commands (tree-sitter-hl-mode) ;; :commands (tree-sitter-hl-mode)
:config ;; :config
(use-package tree-sitter-langs) ;; (use-package tree-sitter-langs)
) ;; )
(provide 'util-tree-sitter) (provide 'util-tree-sitter)