spacemacs/layers/+intl/japanese
syl20bnr ebe4c60264 Revert "Defer packages by default using use-package-always-defer"
This reverts commit 29c78ce841 and all other fixes
that have been made afterwards.

The motivation is that use-package is seen by many as a replacement for
`require`. Is use-package always defer the loading of packages then is breaks
this use case, this does not respect POLA so even if it was making Spacemacs
loading faster (up to 3s faster on some startup on my machine) we just cannot
use it, it would be irresponsible. Spacemacs should be easy to use, loading
performance will come with time but it is not a priority.
2018-03-03 23:40:10 -05:00
..
img japanese: add image and format README.org 2018-02-24 19:49:39 -05:00
packages.el Revert "Defer packages by default using use-package-always-defer" 2018-03-03 23:40:10 -05:00
README.org Format documentation 2018-02-28 03:29:48 +02:00

Japanese layer

/TakeV/spacemacs/media/commit/ebe4c602647801d59013915c8c97d44570556f3e/layers/+intl/japanese/img/Japanese.png

Description

This Layer adds Japanese related packages.

Features:

  • evil-tutor-ja: Japanese Vimtutor adapted to Emacs+Evil and wrapped in a major mode
  • migemo: Japanese incremental search through dynamic pattern expansion
  • helm-migemo-mode: helm with migemo
  • avy-migemo: avy with migemo
  • ddskk: Simple Kana to Kanji conversion program (SKK)
  • japanese-holidays: calendar functions for the Japanese calendar
  • pangu-spacing: emacs minor-mode to add space between Japanese and English characters.
  • Join consecutive Japanese lines into a single long line without unwanted space when exporting org-mode to html.

Install

Layer

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

Configuration

For a basic configuration, add this to your ~/.spacemacs inside dotspacemacs/user-config:

evil-tutor-ja

By default, the variable evil-tutor-working-ja-directory is assigned ~.emacs.d/.tutor-ja.

migemo

By default, the variable migemo-dictionary is assigned /usr/local/share/migemo/utf-8/migemo-dict. If you want it to be another directory, you must re-set the variable. For example, if you install cmigemo using

sudo apt-get install cmigemo

in ubuntu, you should add:

  (eval-after-load "migemo"
    (setq migemo-dictionary "/usr/share/migemo/utf-8/migemo-dict"))

inside dotspacemacs/user-config.

helm-with-migemo

If you want to use helm with migemo, you should add:

  (with-eval-after-load "helm"
    (helm-migemo-mode 1))

inside dotspacemacs/user-config. Note that you may find in a package called helm-migemo.el in MELPA. However, this package is deprecated and not supported by helm.

avy-migemo

By default, you can use migemo for avy.el. For ivy.el, you should add:

(require 'avy-migemo-e.g.ivy)

inside dotspacemacs/user-config. For swiper.el, you should add:

(require 'avy-migemo-e.g.swiper)

inside dotspacemacs/user-config. For counsel.el, you should add:

(require 'avy-migemo-e.g.counsel)

inside dotspacemacs/user-config.

ddskk

You can write a configuration file ~/.skk. For detailed configuration, see some documents.

pangu-spacing

By default, pangu-spacing-mode is applied to text-mode. If you prefer the mode globally, add:

(global-pangu-spacing-mode 1)

inside dotspacemacs/user-config.

Key Bindings

By default, C-x j toggles skk-mode.