Skip to content

Instantly share code, notes, and snippets.

@danielfleischer
Created October 20, 2020 05:52
Show Gist options
  • Save danielfleischer/c070317f1c78403075ebb8eb17ecc794 to your computer and use it in GitHub Desktop.
Save danielfleischer/c070317f1c78403075ebb8eb17ecc794 to your computer and use it in GitHub Desktop.
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