Remove legacy dev config and consolidate to Eglot-based setup

- Delete emacs-dev-config.el (650 lines of legacy lsp-mode config)
- Update emacs-dev-config-modern.el to use Company instead of Corfu
- Remove legacy config loading from init.el and init-utils.el
- Update CLAUDE.md documentation to reflect new architecture

New structure:
- init-eglot.el: LSP support (auto-enables for programming modes)
- emacs-dev-config-modern.el: Optional extras via M-x enable-dev-mode-modern
- init-completion.el: Company completion (single source of truth)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jens Luedicke
2025-12-12 10:38:44 +01:00
parent ba8b24b1d9
commit c6d72d79ed
8 changed files with 64 additions and 679 deletions

View File

@@ -17,11 +17,6 @@
;; First reload the main init.el
(load-file (expand-file-name "init.el" user-emacs-directory))
;; Reload development config if it exists
(let ((dev-config (expand-file-name "lisp/emacs-dev-config.el" user-emacs-directory)))
(when (file-exists-p dev-config)
(load-file dev-config)))
;; Reload SHR config if it exists
(let ((shr-config (expand-file-name "lisp/shr-config.el" user-emacs-directory)))
(when (file-exists-p shr-config)
@@ -98,7 +93,6 @@ to prevent UI freezing. With prefix ARG, use blocking reload."
(cl-remove-if-not
#'file-exists-p
(list (expand-file-name "init.el" user-emacs-directory)
(expand-file-name "lisp/emacs-dev-config.el" user-emacs-directory)
(expand-file-name "lisp/shr-config.el" user-emacs-directory)
(expand-file-name "lisp/elfeed-config.el" user-emacs-directory)
(expand-file-name "lisp/mu4e-config.el" user-emacs-directory))))
@@ -129,7 +123,6 @@ to prevent UI freezing. With prefix ARG, use blocking reload."
(cl-remove-if-not
#'file-exists-p
(list
(expand-file-name "lisp/emacs-dev-config.el" user-emacs-directory)
(expand-file-name "lisp/shr-config.el" user-emacs-directory)
(expand-file-name "lisp/elfeed-config.el" user-emacs-directory)
(expand-file-name "lisp/mu4e-config.el" user-emacs-directory)))))
@@ -188,7 +181,7 @@ to prevent UI freezing. With prefix ARG, use blocking reload."
(message "Error reloading %s: %s"
(file-name-nondirectory file) err))))
(message "Smart reload complete!"))
(message "No files changed recently. Use C-u C-c C-r for full reload.")))))
(message "No files changed recently. Use C-u C-c C-r for full reload."))))))
(defun reload-current-file ()
"Reload only the current file if it's an Emacs Lisp file."
@@ -271,7 +264,7 @@ This is the fastest reload method but requires byte-compilation."
(defun show-dev-mode-info ()
"Show information about development mode."
(interactive)
(message "Development mode is available. Use M-x enable-dev-mode to activate LSP, company-mode, flycheck, and other development tools."))
(message "Development mode is available. Use M-x enable-dev-mode-modern to activate yasnippet, origami, and other development tools. LSP (Eglot) is already active for programming modes."))
;;; God-mode helpers
(defun enable-god-mode-config ()
@@ -284,7 +277,7 @@ This is the fastest reload method but requires byte-compilation."
(load-file god-config)
(message "God-mode configuration loaded. Press ESC to toggle god-mode."))
(error (message "Failed to load god-mode config: %s" err)))
(message "God-mode config file not found at %s" god-config)))))
(message "God-mode config file not found at %s" god-config))))
(provide 'init-utils)
;;; init-utils.el ends here