Skip to content

emacsattic/unicode-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

unicode-input.el

This is an convinient unicode characters input package in Emacs. It can be used as an replacement of the haskell-unicode-input-method in the haskell-mode. Since the haskell-unicode-input-method can not work simultaneously with the company-ghc mode.

It can also be used to other mode which do support unicode well.

Installing unicode-input.el

If you want to add unicode-input to haskell-mode, you need first install haskell-mode. Do the following steps to add unicode-input to you haskell-mode:

  1. Download the unicode-input.el file from this repository
  2. Put it in the load-path of emacs(~/.emacs.d/site-lisp/ for example) or clone this repository and add the directory to load-path
  3. In your .emacs/init file, add the following code
(require 'haskell-mode)
(require 'unicode-input)

(add-hook 'haskell-mode-hook
	  (lambda ()
	    (abbrev-mode 1)
	    (unicode-input-mode 1)))

By default, the unicode-input mode use keybindings with prefix of <f9>, but you can change the prefix by set the variable unicode-input-prefix. But take care to use some key not defined for potential keybinding conflicits.

Usage

For normal Greek letters, just type with their ansi plain names, it will be replaced by their unicode counter-part automatically. For other unicode symbols, input with the prefix in your setting(for the above example ).

For example, to type unicode , you need to type <f9> && to input the character, and to type the symbol x₁, just press x <f9> _1.

For the complete unicode symbols, please see the unicode-input.el file.

The following is a screenshot of unicode-input with company-ghc mode:

unicode input with company-ghc mode

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published