mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix clipboard support on Windows #1284
Windows uses UTF-16 for clipboard content. selection-coding-system is set correctly on Windows systems so we leave it to its default there.
This commit is contained in:
@ -132,9 +132,9 @@ Doom was setup, which can cause problems.")
|
|||||||
(when (fboundp 'set-charset-priority)
|
(when (fboundp 'set-charset-priority)
|
||||||
(set-charset-priority 'unicode)) ; pretty
|
(set-charset-priority 'unicode)) ; pretty
|
||||||
(prefer-coding-system 'utf-8) ; pretty
|
(prefer-coding-system 'utf-8) ; pretty
|
||||||
(setq selection-coding-system 'utf-8) ; pretty
|
|
||||||
(setq locale-coding-system 'utf-8) ; please
|
(setq locale-coding-system 'utf-8) ; please
|
||||||
(if IS-WINDOWS (set-w32-system-coding-system 'utf-8)) ; with sugar on top
|
(unless IS-WINDOWS
|
||||||
|
(setq selection-coding-system 'utf-8)) ; with sugar on top
|
||||||
|
|
||||||
(setq-default
|
(setq-default
|
||||||
ad-redefinition-action 'accept ; silence advised function warnings
|
ad-redefinition-action 'accept ; silence advised function warnings
|
||||||
|
Reference in New Issue
Block a user