Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hebrew setup
(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