Arbitrageur / spacemacs-korean

korean layer for spacemacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Korean layer

images/Dokdo_is_our_torritory.png

Table of Contents

Description

This layer is a collection of configurations for Korean users.

Features:

  • Fix broken table in org-mode (5-36 size)
  • Show keyboard layout automatically when input-method activate. I hope that it would be helpful for those who challenge new keyboard layout such as Sebeol-sik.
  • Spell check in Korean: hunspell-dict-ko
  • Support Korean luna calendar: cal-korea-x
  • auto detect language in google-translate

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add korean to the existing dotspacemacs-configuration-layers list in this file.

Configuration

Font

  • DejaVu: default for latin
  • D2Coding: Hangul fixed fonts (default)
  • Hamchorom: for support yet-Hangul (default)
  • migu: Japanese fixed fonts (default)
  • WenQuanYi: Chinese fixed fonts (default)

These fonts are defaults, but if you want something else, you could change the values in the following:

(setq-default
 dotspacemacs-configuration-layers
 '(
   (korean :variables
           cjk-default-fonts `(,(car dotspacemacs-defualt-font)
                               :korean           "D2Coding"
                               :korean-yethangul "HCR Dotum"
                               :chinese          "Migu 2M"
                               :japanese         "WenQuanYi Zen Hei Mono"))
   ))

Input method

The default korean input method is korean-hangul. If you want Sebeol-sik, you could set the variable default-korean-keyboard to =”3f”= or =”390”=:

(setq-default
 dotspacemacs-configuration-layers
 '(
   (korean :variables
           default-korean-keyboard "3f")
   ))

Sebeol-final

images/391.svg

Sebeol-390

images/390.png

Show keyboard layout

If you are new to Sebeol-sik, it will be easy to adapt that the keyboard layout is visible for a while. And you could set the variable korean-want-ims to =’(“” “3f” “390”)=, it is possible to switch between input methods quickly.

(setq-default
 dotspacemacs-configuration-layers
 '(
   (korean :variables
           korean-want-ims          '("" "3f" "390")
           default-korean-keyboard  "3f"
           show-keyboard-layout     t)
   ))

images/imh-mode.png

Spell checking

You could intall these packages. That’s all. - hunspell

  • hunspell-en

- hunspell-dict-ko

Keybindings

keybindingdescription
S SPCtoggle input method
C \cycle input methods
C = or SPC z Xresize font (with rescale cjk font)
M $ispell-word
SPC x g ggoogle translate (detect language automatically)

About

korean layer for spacemacs


Languages

Language:Emacs Lisp 100.0%