refactor: avoid needless macro calls

Avoid macros where we really don't need them.
This commit is contained in:
Henrik Lissner 2024-06-28 16:56:24 -04:00
parent c4ee986818
commit ae9e1feaa6
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
2 changed files with 4 additions and 5 deletions

View file

@ -143,9 +143,9 @@
;; ...but `set-language-environment' also sets `default-input-method', which is ;; ...but `set-language-environment' also sets `default-input-method', which is
;; a step too opinionated. ;; a step too opinionated.
(setq default-input-method nil) (setq default-input-method nil)
;; ...And the clipboard on Windows could be in a wider encoding (UTF-16), so ;; ...And the clipboard on Windows is often a wider encoding (UTF-16), so leave
;; leave Emacs to its own devices there. ;; Emacs to its own devices there.
(eval-when! (not doom--system-windows-p) (unless doom--system-windows-p
(setq selection-coding-system 'utf-8)) (setq selection-coding-system 'utf-8))

View file

@ -64,8 +64,7 @@ server an expensive restart when its buffer is reverted."
(use-package! consult-eglot (use-package! consult-eglot
:defer t :defer t
:when (modulep! :completion vertico) :when (modulep! :completion vertico)
:init :init (define-key eglot-mode-map [remap xref-find-apropos] #'consult-eglot-symbols))
(map! :map eglot-mode-map [remap xref-find-apropos] #'consult-eglot-symbols))
(use-package! flycheck-eglot (use-package! flycheck-eglot