master_a ([personal profile] master_a) wrote2014-05-03 01:43 pm

Велик и могуч

Велик и могуч, а так же разнообразен кодировками. И имеет хождение среди многих программистов которые пишут на нем комментарии. А код этот иногда приходится читать.
Недавно ramlamyammambam поделился автоматической программой перекодирования, но все же хочется иногда кликнуть на файл и чтобы сразу все и увидеть как есть.

Так вот оказывается emacs умеет, если хорошо попросить.

----------
If you had taken the time while hacking cyrillic.el to search for
"1251", you would find that the "Windows-1251" language environment
has been replaced by "Bulgarian" and "Belarusian" environments, that
in addition to using windows-1251 as their default coding-system,
also configure the default input method appropriately. Since
"Windows-1251" is not a language, and "Bulgarian" and "Belarusian"
are, .......
-----------

Короче внесение в .emacs строчки
(set-language-environment 'Bulgarian)
или то же действие интерактивно заставят emacs расшифровать коварно скрытые комментарии.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting