Use built-in use-package and eglot. Disable external tree-sitter.
This commit is contained in:
parent
cb383ead75
commit
ec44eb5960
@ -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
|
||||||
|
@ -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-.
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user