Lot of optimisation, replace eglot with lsp-mode
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user