Created
October 20, 2020 05:52
-
-
Save danielfleischer/c070317f1c78403075ebb8eb17ecc794 to your computer and use it in GitHub Desktop.
Hebrew setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(set-terminal-coding-system 'utf-8) | |
(set-keyboard-coding-system 'utf-8) | |
(set-selection-coding-system 'utf-8) | |
(prefer-coding-system 'utf-8) | |
(setq default-input-method "hebrew") | |
(setq bidi-display-reordering t) | |
(setq bidi-paragraph-direction nil) | |
(defun change-lang () | |
(interactive) | |
(if (equal bidi-paragraph-direction 'left-to-right) | |
(setq bidi-paragraph-direction 'nil) | |
(setq bidi-paragraph-direction 'left-to-right))) | |
(global-set-key (kbd "C-1") 'change-lang) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment