From ae9e1feaa6b8b741a8f1a745e19aebb553f030b3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 28 Jun 2024 16:56:24 -0400 Subject: [PATCH] refactor: avoid needless macro calls Avoid macros where we really don't need them. --- lisp/doom-start.el | 6 +++--- modules/tools/lsp/+eglot.el | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lisp/doom-start.el b/lisp/doom-start.el index 239a6f1d1..20eec39b5 100644 --- a/lisp/doom-start.el +++ b/lisp/doom-start.el @@ -143,9 +143,9 @@ ;; ...but `set-language-environment' also sets `default-input-method', which is ;; a step too opinionated. (setq default-input-method nil) -;; ...And the clipboard on Windows could be in a wider encoding (UTF-16), so -;; leave Emacs to its own devices there. -(eval-when! (not doom--system-windows-p) +;; ...And the clipboard on Windows is often a wider encoding (UTF-16), so leave +;; Emacs to its own devices there. +(unless doom--system-windows-p (setq selection-coding-system 'utf-8)) diff --git a/modules/tools/lsp/+eglot.el b/modules/tools/lsp/+eglot.el index a020a00c1..a163bfc5a 100644 --- a/modules/tools/lsp/+eglot.el +++ b/modules/tools/lsp/+eglot.el @@ -64,8 +64,7 @@ server an expensive restart when its buffer is reverted." (use-package! consult-eglot :defer t :when (modulep! :completion vertico) - :init - (map! :map eglot-mode-map [remap xref-find-apropos] #'consult-eglot-symbols)) + :init (define-key eglot-mode-map [remap xref-find-apropos] #'consult-eglot-symbols)) (use-package! flycheck-eglot