From d4598db7a2c63afa0b2da949a6f82b7910b6e37d Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Wed, 19 Mar 2025 20:27:08 +0100 Subject: Emacs Configuration Adjustments * Go back to using `flymake` instead of `flycheck` - it is built in and works with `eglot` for LSP. * Change `ace-window` binding to be `C-x o`, like `other-window` which it is intended to replace. --- config/emacs/init.el | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/config/emacs/init.el b/config/emacs/init.el index ac89b44..1104876 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -1,4 +1,4 @@ -;;; -*- lexical-binding:t -*- +;;; -*- lexical-binding: t -*- ;;; TODO(nlordell): ;; 1. Update remaining init scripts: @@ -9,7 +9,6 @@ ;; 3. Investigate other potential sane Emacs defaults ;; ;; 4. Setup GPTel - should be possible without FastGPT credits -;; 5. Resolve ELisp lint issues from Flycheck (load "~/.config/emacs/sanemacs.el" nil t) (load "~/.config/emacs/ligatures.el" nil t) @@ -20,22 +19,13 @@ (use-package ace-window :bind - (("C-c o" . ace-window))) + (("C-x o" . ace-window))) (use-package avy :bind (("C-:" . avy-goto-char) ("M-g f" . avy-goto-line))) -(use-package flycheck - :config - (add-hook 'after-init-hook #'global-flycheck-mode)) - -(use-package flycheck-eglot - :after (flycheck eglot) - :config - (global-flycheck-eglot-mode +1)) - (use-package ligature :config (ligature-set-ligatures 'prog-mode ligatures-berkeley-mono) @@ -73,9 +63,7 @@ (use-package tuareg) (use-package ocaml-eglot - :after (flycheck tuareg) - :custom - (ocaml-eglot-syntax-checker 'flycheck) + :after (tuareg) :hook (tuareg-mode . ocaml-eglot) (ocaml-eglot . eglot-ensure)) @@ -84,8 +72,8 @@ ;;; macOS ;;; -;; Make the shell environement available when started on macOS Spotlight. (when (memq window-system '(mac ns)) + ;; Make the shell environement available when started on macOS Spotlight. (use-package exec-path-from-shell :config (exec-path-from-shell-initialize))) -- cgit v1.2.3