Skip to content

eliascotto/accent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MELPA

accent.el

Overview

accent.el shows a popup with accented characters based on the current letter under the cursor.

Based on the MacOS features for adding accented letters with a long keypress.

Usage

Position the cursor on the character to transform and press C-x C-a (require binding configuration).

  • Select the accented character from the popup with Enter
  • Close the popup with C-g

If the character has no accents available, a message will be prompted accordingly.

Screenshots

screen

Here I'm using cursor-type: 'block and accent-position: 'after.

Installation

You can install accent.el from MELPA.

Config

key binding - RECOMMENDED

Bind a key sequence to open the accent-menu accordingly.

(global-set-key (kbd "C-x C-a") 'accent-menu)

C-x C-a is a good choice if not already bound. To find your emacs key bindings use

C-h k key-sequence

accent-position

;; Use the character after the cursor instead of before
(setq accent-position 'after)

accent-custom

Append a list of custom accents to the default collection.

(setq accent-custom '((a (ă))
                      (o (ŏ))
                      (u (ŭ))))

company-mode

If you have company-mode installed, you can use accent-company instead of accent-menu. It probably doesn't make much sense to add it to company-backends, but using it standalone shall suffice if you like company more than popup.el.

(global-set-key (kbd "C-x C-a") 'accent-company)

Articles

License

Released under GPLv3.

About

Emacs extension for accent characters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published