Lot of optimisation, replace eglot with lsp-mode

This commit is contained in:
Zelong Kuang
2026-03-30 11:49:18 +11:00
parent e1374b0e88
commit a3468b833e
24 changed files with 311 additions and 179 deletions

View File

@@ -15,4 +15,23 @@
(global-set-key (kbd "C-c C-c") #'compile)
(defun delete-this-file ()
"Delete the current file, and kill the buffer."
(interactive)
(unless (buffer-file-name)
(error "No file is currently being edited"))
(when (yes-or-no-p (format "Really delete '%s'?"
(file-name-nondirectory buffer-file-name)))
(delete-file (buffer-file-name))
(kill-this-buffer)))
(defun reload-init-file ()
"Reload Emacs configurations."
(interactive)
(load user-init-file))
(bind-keys ("s-r" . revert-buffer-quick)
("C-x K" . delete-this-file)
("C-c C-l" . reload-init-file))
(provide 'init-bindings)