| 1 | # How to install DDSKK using MELPA |
| 2 | |
| 3 | On Decenmber 2014, DDSKK joined to MELPA repository and DDSKK is possible to be installed |
| 4 | on GNU Emacs with `package.el`. |
| 5 | |
| 6 | * MELPA: Milkypostman's Emacs Lisp Package Archive (https://melpa.org/) |
| 7 | |
| 8 | * package.el is bundled with Emacs 24 or later, but it’s not bound to Emacs 23 and paclage.el is an external package; |
| 9 | see http://wikemacs.org/wiki/Package.el |
| 10 | |
| 11 | ## 1. Setting for package.el |
| 12 | |
| 13 | To use MELPA add following lines to your `~/.emacs.d/init.el` |
| 14 | |
| 15 | ``` |
| 16 | (when (require 'package nil t) |
| 17 | (add-to-list 'package-archives |
| 18 | '("melpa" . "https://melpa.org/packages/") t)) |
| 19 | ``` |
| 20 | |
| 21 | If you use Emacs 23, add following line. |
| 22 | |
| 23 | ``` |
| 24 | (package-initialize) |
| 25 | ``` |
| 26 | |
| 27 | ## 2. Installing DDSKK |
| 28 | |
| 29 | Then, submit `M-x list-packages` to install DDSKK using MELPA, and Package Menu is indicated. |
| 30 | |
| 31 | ``` |
| 32 | -------------------- Package Menu mode -------------------- |
| 33 | Package Version Status Archive Description |
| 34 | darkroom 0.1 new gnu Remove visual ... |
| 35 | * ddskk 20141227.828 new melpa Simple Kana to ... |
| 36 | form-feed 20141228.... new melpa Display ^L glyphs as ... |
| 37 | -------------------- Package Menu mode -------------------- |
| 38 | ``` |
| 39 | |
| 40 | Place the cursor on ddskk and type `i` and the `I` will be marked the beggining of the line. |
| 41 | |
| 42 | Again, type `x`, Emacs askes in the mini buffer if this packege will be installed. |
| 43 | |
| 44 | ``` |
| 45 | ------ Minibuffer ------- |
| 46 | Install package `ddskk-20141227.828'? (yes or no) |
| 47 | ------ Minibuffer ------- |
| 48 | ``` |
| 49 | |
| 50 | |
| 51 | To build and install the ddskk package and the involved packages, ccc and cdb, type `y e s`. |
| 52 | |
| 53 | Package.el installs also `skk.texi`, so info manual can be read with typing `M-x info`. |
| 54 | |
| 55 | ** A limit to install the package ** |
| 56 | |
| 57 | The directories such like `doc/` or `etc/` included in distribution of DDSKK will not be installed by MELPA |
| 58 | except `skk.info` and `skk.xpm`. |
| 59 | |
| 60 | The files contained install package are described on recipe of MELPA. |
| 61 | |
| 62 | Refer the detailed recipe on https://github.com/milkypostman/melpa/blob/master/recipes/ddskk |
| 63 | |
| 64 | ## 3. Setting of DDSKK |
| 65 | |
| 66 | `leim-list.el` and `skk-setup.el` are absent, different from Makefile to install, therefor |
| 67 | you should set a key bind on `~/.emacs.d/init.el` as follows; |
| 68 | |
| 69 | ``` |
| 70 | (global-set-key (kbd "C-x C-j") 'skk-mode) |
| 71 | ``` |
| 72 | |
| 73 | After running skk-mode, Emacs read `~/.skk`, skk initializing file , so |
| 74 | set such like dictionary place. |
| 75 | |
| 76 | After installed DDSKK, put `M-x skk-get` and the dictionaries are automatically downloaded. |
| 77 | The dictionary files are in the directory indicated by `skk-get-jisyo-directory`, which default is `~/.emacs.d/skk-get-jisyo`. |
| 78 | |
| 79 | ## 4. Upgrading DDSKK |
| 80 | |
| 81 | MELPA seems to check the updating of github repository of skk-dev/ddskk. |
| 82 | |
| 83 | You can check updating of DDSKK on MELPA by typing `U` on Package Menu mode. |
| 84 | |
| 85 | If there exist the updates, the target packages are indicated as follows. |
| 86 | |
| 87 | ``` |
| 88 | -------------------- Echo Area -------------------- |
| 89 | N package marked for upgrading. |
| 90 | -------------------- Echo Area -------------------- |
| 91 | ``` |
| 92 | |
| 93 | `I` is marked and then updating will start after type `x`. |
| 94 | |
| 95 | Finaly, you are asked if delete old package, answer it. |