Commit 029a5600 authored by Yuanle Song's avatar Yuanle Song
Browse files

update doc in lisp file header comments

parent 500fd323
;; -*- lexical-binding: t -*- ;; -*- lexical-binding: t -*-
;; the zero Chinese input method framework for emacs. ;; the zero Chinese input method framework for emacs.
;; implemented as a minor mode. ;; implemented as a minor mode.
;; (load-file "~/lisp/elisp/zero/zero-panel.elc")
;; (load-file "~/lisp/elisp/zero/zero-framework.elc")
;;============== ;;==============
;; dependencies ;; dependencies
......
;; -*- lexical-binding: t -*- ;; -*- lexical-binding: t -*-
;; a pinyin input method for zero-framework ;; a pinyin input method for zero-framework
;; use use this input method, add in emacs init file:
;; (add-to-list 'load-path "~/lisp/elisp/zero")
;; (require 'zero-pinyin)
;; (zero-set-default-im 'pinyin)
;;============== ;;==============
;; dependencies ;; dependencies
......
;; -*- lexical-binding: t -*- ;; -*- lexical-binding: t -*-
;; a simple input method written as an emacs minor mode ;; zero-quickdial input method written as an emacs minor mode.
;;
;; to use this input method,
;; M-x zero-quickdial-mode ; turn on IM
;; type 1 will insert one
;; type 2 will insert two
;; type 3 will insert three.
;; M-x zero-quickdial-mode ; turn off IM
;;
;; This is just a demo of how emacs minor mode can work as input method.
(defun zero-quickdial-insert-one () (defun zero-quickdial-insert-one ()
(interactive) (interactive)
...@@ -13,18 +22,17 @@ ...@@ -13,18 +22,17 @@
(interactive) (interactive)
(insert "three")) (insert "three"))
(defvar zero-quickdial-mode-map nil "zero-quickdial-mode keymap") (defvar zero-quickdial-mode-map
'(keymap
(setq zero-quickdial-mode-map (49 . zero-quickdial-insert-one)
(list 'keymap (50 . zero-quickdial-insert-two)
'(49 . zero-quickdial-insert-one) (51 . zero-quickdial-insert-three))
'(50 . zero-quickdial-insert-two) "zero-quickdial-mode keymap")
'(51 . zero-quickdial-insert-three)))
(define-minor-mode zero-quickdial-mode (define-minor-mode zero-quickdial-mode
"a simple input method written as an emacs minor mode" "a simple input method written as an emacs minor mode"
nil nil
"Quickdial" " Quickdial"
zero-quickdial-mode-map) zero-quickdial-mode-map)
(provide 'zero-quickdial) (provide 'zero-quickdial)
;; -*- lexical-binding: t -*- ;; -*- lexical-binding: t -*-
;; a simple input method written as an emacs minor mode ;; a demo table based input method based on zero-framework.el
;; (load-file "~/lisp/elisp/zero/zero-panel.elc") ;;
;; (load-file "~/lisp/elisp/zero/zero-framework.elc") ;; when you type the key in `zero-table-table', IM will insert the
;; (load-file "~/lisp/elisp/zero/zero-table.elc") ;; corresponding value.
;;
;; To use this demo IM,
;; (add-to-list 'load-path "~/lisp/elisp/zero")
;; (require 'zero-table)
;; (zero-set-default-im 'zero-table) ; set as default IM
;; or (zero-set-im 'zero-table) ; set as current buffer's IM
;;============== ;;==============
;; dependencies ;; dependencies
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment